Skip to content

Weird behavior: Scrolling to the first non disabled option in menu #825

@kmudrick

Description

@kmudrick

If you have disabled items in your menu, the fact that this component scrolls to the first focusable option means that those disabled options are effectively hidden right away unless the user manually scrolls or uses keyboard navigation to go up.

I'm using the latest 1.0.0 beta.

Can we make this a prop to disable this behavior?

I believe the behavior is happening from here: https://github.com/JedWatson/react-select/blob/v1.0.0-beta11/src/Select.js#L149

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions