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 9e34c65 commit b2713b4Copy full SHA for b2713b4
packages/react-select/src/Select.tsx
@@ -1562,6 +1562,7 @@ export default class Select<
1562
tabIndex,
1563
form,
1564
menuIsOpen,
1565
+ required
1566
} = this.props;
1567
const { Input } = this.getComponents();
1568
const { inputIsHidden, ariaSelection } = this.state;
@@ -1578,6 +1579,7 @@ export default class Select<
1578
1579
'aria-invalid': this.props['aria-invalid'],
1580
'aria-label': this.props['aria-label'],
1581
'aria-labelledby': this.props['aria-labelledby'],
1582
+ 'aria-required': required,
1583
role: 'combobox',
1584
...(menuIsOpen && {
1585
'aria-controls': this.getElementId('listbox'),
0 commit comments