Skip to content

Unable to change the role of select #5746

@pixelRena

Description

@pixelRena

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/bug-unconfirmedIssues that describe a bug that hasn't been confirmed by a maintainer yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions