JedWatson / react-select

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

Unable to change the role of select #5746

Open pixelRena opened 11 months ago

pixelRena commented 11 months ago

Hello, My company is using react-select but we need to change the role because of certain conflicts with the role being set to combobox. When we add the prop role="listbox" into the component, it continues to show 'combobox', and there seems to be no way around this. Is there perhaps something we are missing or are we unable to change the role right now?

The version we're using is 5.7.4.

Here is an example:

      <RSelect
        {...inputAttributes}
        aria-label={generatedAriaLabel}
        unstyled
        role="listbox"
        // rest of code...

What dev tools shows:

image

pixelRena commented 8 months ago

Any updates on this? The linked PR looks like it will solve this problem