-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
A "shown.bs.select" event listener is attached INSIDE the button's click handler, so this gets attached again and again, every time the button is clicked.
Debug:
this.$button.on('click', function () {
that.setSize();
that.$element.on('shown.bs.select', function () {
console.log('XXX');
Now start clicking the button several times to open and close the menu and watch the console how many time XXX is printed.
Watching the code I see the event is only removed when the select is required and in invalid state.
Metadata
Metadata
Assignees
Labels
No labels