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 Jan 5, 2024
1 parent 6927788 commit 082845e
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 082845e

Please sign in to comment.