Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to change the role of select #5746

Open
pixelRena opened this issue Sep 5, 2023 · 1 comment · May be fixed by #5768
Open

Unable to change the role of select #5746

pixelRena opened this issue Sep 5, 2023 · 1 comment · May be fixed by #5768
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet

Comments

@pixelRena
Copy link

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 pixelRena added the issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet label Sep 5, 2023
@LurkingExorcist LurkingExorcist linked a pull request Oct 6, 2023 that will close this issue
@pixelRena
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant