Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 3c70032
Author: amacou <[email protected]>
Date:   Tue Jul 23 15:05:23 2019 +0900

    Fix getClasses function's filter works contrawise. Fixes Bttstrp#711
  • Loading branch information
izumiya committed Apr 17, 2023
1 parent 2b316be commit 95dcb54
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 95dcb54

Please sign in to comment.