Design comparison
SolutionDesign
Solution retrospective
Hello there, this was a tough challenge for me I think my code can be a bit less messy, I couldn't figure out how to update the list when removing a filter. Other than that I'm happy with the final result. If you have any feedback please let me know, thanks.
Community feedback
- @DplusKPosted almost 4 years ago
Hi there, my approach (of course not the best) was to re-do the filtering every time a filter is selected or removed from the list. and the shown listings have to comply with all the tags selected. I used the class attribute to do so, using .matches(), reset the visibility of all the listing, and then reapplying the hidden for others.
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