-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Limit minimum input items to 1 (Opposite of maxOptions) #1228
Comments
I just came accross this when looking for a minItems options. Is there a chance a minItems options will be implemented? |
I think this would be great feature :) |
closing stale issues older than one year. |
I do think this would be very useful. Seems to be a commonly googled question. |
@risadams This should be reopened unless it is a duplicate. Request seems to be pretty clear and relevant, unless there is an alternative way to achieve this. |
I opened a new issue #1642 since this is closed |
Reopening. I do think this has merit, but can see issues in execution. Side note. we would totally welcome a pull request |
Very valid quesstions. The next time I find a usecase where I need this feature, it would be easy for me to answer. Hopefully others who want this can chime in. |
Hi, I indeed found this issue by an initial google search. To add some thoughts, I think it would be great if minOptions
Given my above comment, if the
Yes, I think users should be prevented from removing the last
Controls behavior. I'm sure there are many other use cases that do not match my own, but I wanted to share what I was hoping for when I googled for this feature. Thank you and hi @daattali! |
I did:
(or gave a link to a demo on the Selectize docs)
like below
I made an app that use selectize for user input. Desktop only, and it's on http://typography.philipyoungg.com
In short, is there any API to limit selectize value to 1 (no empty input)?
or if there wasn't, can I hack this somehow?
I've tried to add keydown listener and use jQuery
e.stopImmediatePropagation()
, but it's not working—because the listener instantiated afterwards.Any help would be appreciated.
The text was updated successfully, but these errors were encountered: