Skip to content

Commit

Permalink
fix: rely on Form.Control and controlId in Form.Group
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz committed Dec 14, 2023
1 parent e6967cf commit 5bd9772
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/DataTable/filters/TextFilter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ function TextFilter({
const formattedHeader = formatHeaderForLabel(Header);
const inputText = React.isValidElement(formattedHeader) ? formattedHeader : `Search ${formattedHeader}`;
return (
<Form.Group>
<FormLabel id={ariaLabel.current} className="sr-only">{inputText}</FormLabel>
<Input
aria-labelledby={ariaLabel.current}
<Form.Group controlId={ariaLabel.current}>
<Form.Label className="sr-only">{inputText}</Form.Label>
<Form.Control
value={filterValue || ''}
type="text"
onChange={e => {
Expand Down

0 comments on commit 5bd9772

Please sign in to comment.