library icon indicating copy to clipboard operation
library copied to clipboard

Fix for exit intent modal blocking clicks

Open tclayson opened this issue 6 years ago • 1 comments
trafficstars

The exit intent modal was blocking clicks on the main webpage, even when it was dismissed.

This is because the HTML for the modal was injected on top of the content and when dismissed was just hidden, not completely removed, meaning that clicks elsewhere on the webpage were blocked by the invisible element.

I have fixed this by adding CSS to the overlay to pass click events through it when it is in the .fade-out state, and recapture those click events when it is in the .fade-in state.

tclayson avatar Oct 03 '19 15:10 tclayson

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 03 '19 15:10 CLAassistant