Bug with clearing the active filters
-
I have been experimenting in a staging site, and have been experiencing this weird behavior. Let me explain.
I have this variable product with three product attributes (i.e. brand, color, gender):
I have set up all my filter blocks to use the multiselect relation of OR.
Then from the product page I choose to filter by 5 brands (Adidas OR Akkeron OR Babolat OR Bullpadel OR Wilson) AND (Μα?ρο – Greek for Black) AND (Γυνα?κα – Greek for Woman).
As expected, the one product which matches those criteria is returned.
https://ibb.co/X5csjSxThen (don’t ask me why) I decide to remove the Adidas Brand from the active filters. Unexpectedly enough, no products are returned anymore, although the combination of Black+Woman+Babolat was supposed to allow the product to remain in the results nonetheless.
https://ibb.co/WDbGqNVHowever, if I explicitly click on the Apply Filters button, the query is executed again, only with the currently active filters (like the initial query, excluding the Adidas Brand) and the product is properly returned once again.
https://ibb.co/rcVWVT1Would you kindly assist me with this? To be honest it just doesn’t make sense for it to work this way. There must be a bug somewhere, surely, or at least a misconfiguration on my behalf.
I am considering adding event listeners to each and every active filters elements, with
preventDefault
to emulate an Apply filters button click every time someone clicks on an active filter to remove it, but there surely must be a better solution to this.I have checked in the browser console, and there doesn’t seem to be any related errors there.
Please review and advise. Thank you.
- The topic ‘Bug with clearing the active filters’ is closed to new replies.