1. Home
  2. Knowledge Base
  3. Codex
  4. JS API
  5. JS Filters
  6. applyFilters( “ignore_overlay_click” )

applyFilters( “ignore_overlay_click” )

applyFilters( "ignore_overlay_click", ignore );

Allows to ignore the click on the popup overlay: Return true to manually ignore the click.

Params

ignore bool, required
Whether to ignore the click and do nothing.

Examples

// Ignore all clicks on the background overlay.
DiviArea.addFilter( 'ignore_overlay_click', function( ignore ) {
    return true;
});

Notes

This filter is only called when a Popup is visible that can be closed. For example, when the current Popup is set to “Close on Background-Click: NO” then this filter will not be fired at all.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Get in touch with us