bootstrap-switch icon indicating copy to clipboard operation
bootstrap-switch copied to clipboard

getClasses function's filter works contrawise

Open danielcsorba opened this issue 5 years ago • 0 comments

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 ==.

danielcsorba avatar Jul 22 '19 05:07 danielcsorba