switchery icon indicating copy to clipboard operation
switchery copied to clipboard

Change event triggering twice

Open Aleksaas opened this issue 7 years ago • 5 comments

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?

Aleksaas avatar Jun 29 '17 08:06 Aleksaas

I actually realized that this happens if developers tool in chrome is opened. Strange bug.

Aleksaas avatar Jul 10 '17 14:07 Aleksaas

Just noticed this as well. Seems to happen even when chrome developer tools is closed.

clin407 avatar Jul 18 '17 06:07 clin407

Yea, it definitely is a bug.

Aleksaas avatar Aug 31 '17 11:08 Aleksaas

+1

theFra985 avatar Feb 18 '19 10:02 theFra985

I fixed it here https://github.com/jirikrepl/switchery/commit/174cb248c7504f5b1e9bf1b87579b7861d2af212

jirikrepl avatar Apr 30 '22 14:04 jirikrepl