-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Changed event triggered when using data-max-options? #1291
Comments
Hrmmm...that isn't normal functionality for that feature. If |
I'm not sure if I agree. Say I have a native dropdown as such: <select>
<option selected>Foo</option>
<option>Bar</option>
<option>Baz</option>
</select> When I select "Bar", it becomes selected -- there aren't any implementations of If you're not showing a notification, though, then what is the logic for which option you unselect? Oldest-gets-dropped? With a native dropdown, when you select an option, the previously selected option becomes unselected, but it only fires a single |
If you're using |
I've been working with bootstrap-select recently, in particular with dropdown menus using the
data-max-options
option, and how it triggers thechanged.bs.select
event.So say we have a dropdown as such, with
data-max-options="2"
When we select Opt 3, the dropdown changes to look like
Currently one event is fired:
changed.bs.select
for Opt 3 added.In my opinion, two events should be fired:
changed.bs.select
for Opt 2 removed, and thenchanged.bs.select
for Opt 3 added.I'm happy to submit a PR for this if you think it is a valid bug, just wanted to hear your thoughts before writing the code.
The text was updated successfully, but these errors were encountered: