-
Notifications
You must be signed in to change notification settings - Fork 2k
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
onSelectAll not fires event when option "Select all" clicked #752
Comments
I just ran into this myself, and the same for the onDeselectAll function that is not documented but in the javascript file. I know a previous version worked. I found this when I updated to the latest version and both of my functions were not working. Here's the code I am using. I will edit the previous version of code that I have to create the onDeselectAll function to work, but would be nice to have these features working when the user clicks on that checkbox.
|
+1 |
As a temporary fix, just override the triggerOnSelectAll parameter for selectAll/deselectAll in the source
|
I've made a pull request to solve this issue: #764 |
Will have a look at the pull request. |
It doesn't work for me Any help? |
onSelectAll not fires event when option "Select all" clicked. Only when last option in list is selected event fired. Event not fired when i unselect last option in list.
I am newbie with Javascript, so it may be my mistake, but i check that use last version of <bootstrap-multiselect.js> and i try use simple function like here (https://www.bountysource.com/issues/29165923-why-does-onselectall-function-is-triggered-when-nothing-is-selected).
When i select\unselect "Select All" options in list changed but event not fired.
When all option selected and i unselect one and select it back - event fired. I got message box with text "onSelectAll triggered: deselected all!" ("checked" value is wrong)
When all option unselected and i unselect last one - event not fired.
When i test example here (http://davidstutz.github.io/bootstrap-multiselect/#configuration-options-onSelectAll), i got same effect - "Select All" not fire trigger. And when i unselect and select back one option i got message box with text "onSelectAll triggered: deselected all!", not with "onSelectAll triggered."
It may be bug with my browser (Chrome 50.0.2661.102 m) but i also test with MS Edge 25.10586.0.0 and got same effect.
This is my code:
The text was updated successfully, but these errors were encountered: