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

Combine simple dropdown filter and multiselect dropdown filter with checkbox - first filter overwritten #1645

Open
kim5x5 opened this issue Dec 20, 2022 · 0 comments

Comments

@kim5x5
Copy link

kim5x5 commented Dec 20, 2022

Hi, I've been doing trial and error for isotope filtering and I'm running out of options that leads me writing here. I'm new to coding so please bear with me.

I'm trying to create filters using isotope. I had the filter working for both list and multiselect with checkbox options separately. But I'm stuck with combining the two different filters.

The list filter is triggered on click while the multiselect with checkbox filter is triggered on change. I tried using both events at once. Though I'm not sure what's the right way.

Now, here's my problem. The first filter would work at first but after using the multiselect checkbox, the previous filters were overwritten. Therefore, they are not combined.

I temporarily changed the list to select for the first filter because it's easier to setup than the list. But the logic should remain the same of what I'm trying to achieve.

This is what I recreated https://codepen.io/kim5x5/pen/ZERgLJd if you could take a a look ang give some enlightenment I would really appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant