Responsive implementation with animations (react/styled-components)
Design comparison
Community feedback
- @JesusEgonVenegasPosted over 1 year ago
When you filter with multiple tags, it seems to not be working properly, it's taking only the latest clicked tag onto account for the search, and there's duplicates.
This is how I thought about it: 1.- I had to keep track of the original data, and the filtered data. 2.- Only filter the filtered data again and again, that way it takes every single tag/filter easily. 3.- If I hit the 'clear' button to get rid of all the filters I just instantly reset to the original data without making a big process.
So filter thru lets say HTML > You get all the ones containing HTML, If you hit another tag on top of that, you just want to filter those same results with the new tag.
Marked as helpful1@niemalPosted over 1 year ago@kasdeya Thanks for making note of any bugs.
I just got rid of the duplicates, I forgot a single line of code. It's working properly with multiple tags but not with a distinct isolated filtered list. In regards to your points:
- That's up to personal preference since there's no exclusive instruction that illustrates that desired behavior. README-template.md stated as such: "Filter job listings based on the categories". That implies the filter variety should be based on the original set of data and not on the product filtered by.
- Yeah pretty much.
Again thanks for making the effort and the suggestions! Best wishes.
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord