switchery
switchery copied to clipboard
Change event triggering twice
I have onchange event handler for the switchery checkbox and when I click it, event is triggered twice. Anyone knows how this can be fixed?
I actually realized that this happens if developers tool in chrome is opened. Strange bug.
Just noticed this as well. Seems to happen even when chrome developer tools is closed.
Yea, it definitely is a bug.
+1
I fixed it here https://github.com/jirikrepl/switchery/commit/174cb248c7504f5b1e9bf1b87579b7861d2af212