Skip to content

disableMask

disableMask is a DOM event that occurs whenever the country gets deselected and validation mask should be disabled inside certain elements like a postal code input.

Event body

none

Example

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

useStorefront(async (storefront) => {
    storefront.eventBus.on('disableMask', () => {
        console.log('Disable mask on specific parts of the form');
    });
});