Skip to content

Commit

Permalink
Fix getClasses function's filter works contrawise. Fixes Bttstrp#711
Browse files Browse the repository at this point in the history
  • Loading branch information
amacou committed Jul 23, 2019
1 parent 19275e7 commit 3c70032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/bootstrap-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 3c70032

Please sign in to comment.