-
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
Select All doesn't fire onChange event #415
Comments
adding this code:
to the function at line 369 - defined thus:
..fixes the issue. Also, you probably wanna take this line:
and pop it into the !isSelectAllOption scope a few lines above it. That line fires the onChange event passing in undefined as the input element which could throw an exception if you don't check for that. Thanks. |
I fully acknowledge that there is probably a better way of getting all the children than
..but I gotta move on in the project I'm working on. |
Maybe an |
I second @davidstutz proposition of implementing a separate event, if really necessary. Generating a change event for each option would be way to slow, especially with a large number of options. An alternative would be to listen for the change event on the original select (it's raised once after the selectAll finished its job) and check the selected values there? |
I too am having a bit of trouble here - i am using the standard change event to show/hide data in my document. The select all / deselect all doesn't trigger the change event - is there any other way to hook onto it? |
I assume an |
👍 for this feature. We're currently live updating graphs when something is selected but unfortunately this doesn't happen when you select all filters in the dropdown. |
I'm also interested in this feature. I see that there is already I agree a new event for each change is not warranted, but if |
Also looking for an select all onChange event here 👍 . Thanks for implementing it! |
@tangledhelix Ok, I guess it is possible to adapt |
I am working with 6 multiselect's on the same form and need to get on which one was the SelectAll option chosen and I think I can't achieve that by the onSelectAll function or am I wrong? Thanks ! |
@tangledhelix better late then never, but this will be included with the next commit. |
Is there a way to fire the onChange event when the select all is hit? If not, I need one please :-)
The text was updated successfully, but these errors were encountered: