JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.63k stars 4.13k forks source link

No prop available to change aria-autocomplete of react-select Input #4950

Open integrellaabhijeet opened 2 years ago

integrellaabhijeet commented 2 years ago

There is no prop available for react select to change aria-autocomplete attribute like we can change aria-label. The value for aria-autocomplete is set to "list" and is unable to change through props.

Refer the following url to the line of code. https://github.com/JedWatson/react-select/blob/master/packages/react-select/src/Select.tsx#L1560

Because of aria-autocomplete="list", the screen reader reads out things that the user shouldn't really need to hear. something like "edit text autocompletion lists" is read out.

to prevent that we need to set aria-autocomplete to none. But since it has constant value "list", we are not able to do so.

bahadurharris commented 5 months ago

I am also facing a similar issue where screen reader is announcing "Drop Down combo box collapsed has auto complete" because of the aria-autocomplete="list" where as I've set the isSearchable prop to false and I also tried to change the value of this none but it didn't worked, please check and update asap

bahadurharris commented 5 months ago

select drop down has autocomplete