You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing selectize.js to replace our default html select when we want custom rendering but we don't want the user to be able to add items or even remove the selection.
In practice I need a single select with forced selection of one item, like a default input select widget with no empty option, but with custom rendering (and that's the only reason I can't use the native widget).
I currently use the "maxItems: 1" option and implement the "onDelete" option to always return false, but this sounds like an hack and I still have the blinking cursor that is confusing given writing is not allowed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm testing selectize.js to replace our default html select when we want custom rendering but we don't want the user to be able to add items or even remove the selection.
In practice I need a single select with forced selection of one item, like a default input select widget with no empty option, but with custom rendering (and that's the only reason I can't use the native widget).
I currently use the "maxItems: 1" option and implement the "onDelete" option to always return false, but this sounds like an hack and I still have the blinking cursor that is confusing given writing is not allowed.
Beta Was this translation helpful? Give feedback.
All reactions