react-component / select

React Select
https://select.react-component.now.sh/
MIT License
892 stars 452 forks source link

aria-expanded is not initialised #978

Closed flaviusdolca closed 10 months ago

flaviusdolca commented 10 months ago

This issue refers to the rc-select component when using antd.

When the component is initialised, the aria-expanded attribute is not present. It will appear only after the first toggling of the select component. This will trigger the a11y scanner.

This issue can be fixed by changing the following line of code:

https://github.com/react-component/select/blob/master/src/Selector/Input.tsx#L94

to: 'aria-expanded': open || false,

979