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

Multiselect disable option should remove the disabled option if it's already selected #55

Closed
yonatanmk opened this issue Feb 26, 2017 · 1 comment

Comments

@yonatanmk
Copy link

In the live demo, if a user were to add chocolate to the multiselect input and then disable the chocolate option, chocolate would remain in the in the input field with the nex label text as so:

screen shot 2017-02-26 at 3 15 16 pm

Shouldn't chocolate be removed from the input should the user disable the chocolate option?

@TrevorBurnham
Copy link
Contributor

This is the same behavior as in the upstream React Select project: http://jedwatson.github.io/react-select/

I see what you're saying, but the component isn't so opinionated as to hide options that are included in its values. The visible component state is a 1:1 reflection of the values prop. If an app wants to include an option that can be removed but not re-added, that's weird but it's not technically prohibited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants