We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
aria-required
1 parent 45b3c8d commit 5c61798Copy full SHA for 5c61798
packages/react-select/src/Select.tsx
@@ -1571,6 +1571,7 @@ export default class Select<
1571
tabIndex,
1572
form,
1573
menuIsOpen,
1574
+ required
1575
} = this.props;
1576
const { Input } = this.getComponents();
1577
const { inputIsHidden, ariaSelection } = this.state;
@@ -1587,6 +1588,7 @@ export default class Select<
1587
1588
'aria-invalid': this.props['aria-invalid'],
1589
'aria-label': this.props['aria-label'],
1590
'aria-labelledby': this.props['aria-labelledby'],
1591
+ 'aria-required': required,
1592
role: 'combobox',
1593
...(menuIsOpen && {
1594
'aria-controls': this.getElementId('listbox'),
0 commit comments