Skip to content

closeFilters

closeFilters is a DOM event that occurs whenever the filters layer is closed.

Event body

none

Example

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

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