Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Flip toggle switch with change event bound, triggers multiple times #2315
Three additional details:
This is happening because refresh() is called from both vmousedown and vmouseup with the same signature that allows it to go into the are of code that updates the control's value and dispatches the "change" event. For some reason this code does NOT check to see if the value actually did change before triggering the change event.
I have a fix for this. I'll check it in after I finish the unit test case for it.