Multiple search with fixed selections #1858
-
Hello, is it possibile to have a multiple selection dropdown that have one or more fixed seletions that user can't remove? In this case Alaska is a default value that can't be removed by user. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Two options here:
See an example using both options: The preselected label "english" cannot be removed the usual way anymore |
Beta Was this translation helpful? Give feedback.
-
Hello lubber-de, thank you for your great hint! I noticed that |
Beta Was this translation helpful? Give feedback.
-
That the value could be "AL" and the text "Alabama". |
Beta Was this translation helpful? Give feedback.
-
Hello, what in case of multiple fixed selections? I have to deal with an array of fixed items and I have to match with selected ones... |
Beta Was this translation helpful? Give feedback.
Two options here:
onLabelRemove
and return false when a desired label is tried to be removedSee an example using both options: The preselected label "english" cannot be removed the usual way anymore
https://jsfiddle.net/lubber/bxc2n5yp/12/