Crocoblock / suggestions

The suggestions for CrocoBlock project
191 stars 78 forks source link

[Jet Smart Filters] Checkbox filters remain disabled #7522

Open XaricxD opened 1 month ago

XaricxD commented 1 month ago

The bug

I've created a WooCommerce product archive using Elementor. The archive has checkbox filters created with JSF to filter products based on categories and attributes.

Each filter has been set to AJAX and has indexer and counter enabled. All counters have been set to change when other filters change and if a filter gets empty during the process, it becomes disabled.

The filtering works as expected in terms of displaying the right products based on the categories or attributes selected.

The issue is that when I activate a category + an attribute filter, and then deselect those filters by clicking on them again, all filters that had been disabled, remain disabled.

The only way to re-enable those filters is to either reload the page or use a "remove filters" button.

This bug doesn't take place if I filter only based on attributes or only based on categories, but rather if I filter using a combination of category and attribute filters.

The issue takes place also when trying to remove those filters using the active filters widget.

Expected behavior When deselecting active filters, all disabled filters and their counters should be reset to their initial state.

The issue persists across multiple devices, both desktop, and mobile, and across multiple different browsers, all with cleared caches.