Prevent click events on anything with a role attribute…
-
Hey,
I’ve been having a quite a few issues with your plugin but this one really surprised me.
In public/js/fastspring-public.js you add a click event listener on document.
Within that you preventDefault AND set the style.display of the target to ‘none’ on every thing that has a role attribute.L30 –
if(event.target.hasAttribute('role')) { event.preventDefault(); var modal = event.target.getAttribute("role"); event.target.classList.remove('show'); event.target.style.display = 'none'; }
Looks like it was introduced in version 3.0.0.
I may be going crazy but this has surely got to be breaking most sites this plugin is installed on?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Prevent click events on anything with a role attribute…’ is closed to new replies.