From 3c700327d4b5a1ee717a8e9a66f2f880464d4d29 Mon Sep 17 00:00:00 2001 From: amacou Date: Tue, 23 Jul 2019 15:05:23 +0900 Subject: [PATCH] Fix getClasses function's filter works contrawise. Fixes #711 --- src/js/bootstrap-switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/bootstrap-switch.js b/src/js/bootstrap-switch.js index 291ecc38..41a66ee2 100644 --- a/src/js/bootstrap-switch.js +++ b/src/js/bootstrap-switch.js @@ -12,7 +12,7 @@ function getClasses(options, id) { indeterminate ? 'indeterminate' : undefined, inverse ? 'inverse' : undefined, id ? `id-${id}` : undefined, - ].filter(v => v == null); + ].filter(v => v != null); }