Bttstrp / bootstrap-switch

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

getClasses function's filter works contrawise #711

Open danielcsorba opened 5 years ago

danielcsorba commented 5 years ago

https://github.com/Bttstrp/bootstrap-switch/blob/19275e72733674f67e617139b0e41c93db1aeaf0/src/js/bootstrap-switch.js#L15

Result: This currently leaving only the null values in the array. Causing invalid class names and preventing class based options to work.

Fix: It should be negated !== instead of ==.