Skip to content

Disabling the component doesn't close the menu #762

@gabrielenosso

Description

@gabrielenosso

Passing the "disabled={true}", doesn't close the menu.
It means that if you update then the component with "disabled={false}", the component is bugged: it doesn't close properly because the state.isOpen is still false (even though the menu is rendered).

So the closeMenu() method at https://github.com/JedWatson/react-select/blob/master/src/Select.js#L247 isn't invoked.

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