-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
For problematic ajax sources, Select2 cannot unselect options, no errors given in the console. #6173
Comments
I don't have the docs open right now but I'm fairly certain these are both documented. The |
Even if it's documented in the docs (it's not; there are several issues where the "id must be a string" is supposed to be taken care of by the library, see #4227 (comment), #6128 and so on), the point is that one random feature of the library (unselecting) shouldn't break silently. It's very hard to track down why one box suddenly just had a feature stopped working, only to find out that on that day a data source returned a wrong item. I also don't see why the workaround I'm using in jsbin couldn't be made the default behavior of the library. |
Bug
For problematic ajax sources, Select2 cannot unselect options, no errors given in the console.
Expected
Select2 should be able to unselect options
OR
Select2 should throw an error that an entry is problematic.
Replicate
Causes
Workaround
Both options are shown in the second select box in jsbin.
The text was updated successfully, but these errors were encountered: