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

[BUG] filterToggle not working with update from 2.0.1 to 2.2.3 #120

Open
origandrew opened this issue Aug 5, 2019 · 0 comments
Open

[BUG] filterToggle not working with update from 2.0.1 to 2.2.3 #120

origandrew opened this issue Aug 5, 2019 · 0 comments
Labels

Comments

@origandrew
Copy link

toggleFilter can perform initial filter but cannot toggle off.

Quick debug shows data-filter as a number and checking the this.options.filter which only contains strings. So the toggled state after a few clicks would result in checking if 1 is in array ["1", "1", "1"].

Expected Behavior:
https://designlink.work/en-US/filterizr-2/

Unexpected Behavior with latest version of Filterizr:
https://codepen.io/origandrew/pen/LwOOwP
changing the filterizr version to 2.0.1 results in a working toggle function

@origandrew origandrew added the bug label Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant