You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the original control that I believe this one is based on, the documentation says that onSelectAll won't be fired if the user selects all options manually. Only if the user clicks the "All" checkbox.
In this control, the event does fire. This makes it really hard to manage the select all event, because when I populate the control with selected values on load, it fires the event, making react rerender and repopulate the values (causing an infinite loop).
I might be doing something wrong, but it was noteworthy to me that the davidstutz version apparently behaves differently.
This control is awesome. Thanks for making it.
The text was updated successfully, but these errors were encountered:
Thank you for the details! I haven't done anything w/ this repo in a while, so I'm hoping to find some time soon to clean up some of the code, write some tests, and look into bugs like this. The infinite loop sounds very bad, so I want to prevent anything like that from happening.
In the original control that I believe this one is based on, the documentation says that onSelectAll won't be fired if the user selects all options manually. Only if the user clicks the "All" checkbox.
http://davidstutz.github.io/bootstrap-multiselect/#configuration-options-onSelectAll
In this control, the event does fire. This makes it really hard to manage the select all event, because when I populate the control with selected values on load, it fires the event, making react rerender and repopulate the values (causing an infinite loop).
I might be doing something wrong, but it was noteworthy to me that the davidstutz version apparently behaves differently.
This control is awesome. Thanks for making it.
The text was updated successfully, but these errors were encountered: