-
Notifications
You must be signed in to change notification settings - Fork 34
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
Select2 default allow clear #14
base: master
Are you sure you want to change the base?
Conversation
Hi @alexgreat70, thank you for your contribution. Can you explain the reasoning behind this change? |
This change adds the ability to reset the default field values, which is very convenient. |
I tested it and agree that it makes a lot of sense. In the form input case it can be a bit confusing, though, if the underlying select does not have a blank option: There should not be a way to empty the select, only to choose another option. On the other hand, if a blank value is present, the new behavior is better since before Select2 did not provide a way to reset the select. Still, the label of the blank option is not displayed. I'd suggest to
What do you think? |
I think this should not be done, placeholder can be specified if it is really necessary, we have been using your gem for a month already and only added feature works for us, it works through fork, we are waiting for confirmation of the merge so that we can use your repository directly in Gemfile |
Since the change makes matters worse in the case of |
No description provided.