Bttstrp / bootstrap-switch

Turn checkboxes and radio buttons in toggle switches.
MIT License
5.08k stars 1.45k forks source link

Sorry to raise this issue again. #733

Open Anglin-George opened 3 years ago

Anglin-George commented 3 years ago

Sorry to raise this issue again. I am using Bootstrap Switch 3 and I having this double-switchChange calls issue when I press on the white area (Clicking on OFF from OFF and ON from ON as j-salazar commented). This can be seen also on the bootstrap switch website http://www.bootstrap-switch.org/ , when the white side clicked (3 when is 3, or 2.0.1 when it's 2.0.1) sometimes it just stay in place (actually it's changes and then goes back with calling the switchChange twice). I am using data-size=mini and it's seems that this behavior happens all the time in the mini mode and only sometimes on the 3/2.0.1 examples. maybe it's related. If it wasn't moving and also not calling the switchChange twice I guess it would be ok, but in my case, as I am calling a boostrap modal, it shows the modal twice and that's a problem.

Originally posted by @ET-CS in https://github.com/Bttstrp/bootstrap-switch/issues/102#issuecomment-47426499