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

Question: Disabling removal of items in multiselect #458

Closed
seanconnollydev opened this issue Sep 18, 2015 · 3 comments · Fixed by #620
Closed

Question: Disabling removal of items in multiselect #458

seanconnollydev opened this issue Sep 18, 2015 · 3 comments · Fixed by #620

Comments

@seanconnollydev
Copy link

Is there a way to disable the removal of an individual value in multiselect mode? I have a use case where a user can select multiple things, but some items are locked in, meaning they cannot be removed from the list. I'd really need two things here:

  1. Disable or hide the "X" when the item is in the list of current values.
  2. Apply a different class to a disabled value so that I can style it differently.
@medv
Copy link

medv commented Oct 21, 2015

+1 Would be nice to render "ticks" next to each item visually signifying that multi-selection is possible, and styling the item to be ticked and greyed out when already picked.

@slybridges
Copy link
Contributor

+1 I have a similar use case (in a certain situation, a multi select is prepopulated with 1 selected option that the user cannot remove).

Did anybody find a workaround for this ?

@slybridges
Copy link
Contributor

I've created a PR suggesting a fix.
@JedWatson - let me know any comment.

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

Successfully merging a pull request may close this issue.

3 participants