Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getClasses function's filter works contrawise #711

Open
danielcsorba opened this issue Jul 22, 2019 · 0 comments · May be fixed by #713
Open

getClasses function's filter works contrawise #711

danielcsorba opened this issue Jul 22, 2019 · 0 comments · May be fixed by #713

Comments

@danielcsorba
Copy link

].filter(v => v == null);

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 danielcsorba changed the title getClasses function's filter work contrawise getClasses function's filter works contrawise Jul 22, 2019
amacou pushed a commit to amacou/bootstrap-switch that referenced this issue Jul 23, 2019
izumiya added a commit to sensyn-robotics/bootstrap-switch that referenced this issue Apr 17, 2023
izumiya added a commit to sensyn-robotics/bootstrap-switch that referenced this issue Apr 17, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant