Skip to content

resetFilters

resetFilters is a DOM event that occurs whenever the filters are reset.

Event body

none

Example

In this example we listen to resetFilters event and perform an action whenever it's emitted.

useStorefront(async (storefront) => {
    document.addEventListener('resetFilters', () => {
        console.log('Filters have been reset');
    });
});