miket-dev / multiselect

Pure js multiselect implementation
MIT License
38 stars 30 forks source link

Multiple multiselects on one page #19

Open justineschott opened 3 years ago

justineschott commented 3 years ago

Hi, thanks for an awesome tool!

I had 2 different multiselects on one page, and I set up two separate checkboxAll handlers within setCheckBoxClick, one for each multiselect. The problem was that when I selected "Select All" for either one of the multiselects, the handler for the second multiselect would be enacted, rather than the individual handlers that I had set up.