Allow for jQuery higher up DOM?
-
Instead of using
return false
on line 294 of wp-post-modal-public.js, can you switch toe.preventDefault();
? I’ve tested and that allows for events higher up in the DOM to execute.The reason I needed this was so that I could do click-tracking for when users open modal windows. I wrapped each .modal-link element with a div, and did click-tracking on the div. This didn’t work until I changed your javascript to use
e.preventDefault();
rather thanreturn false
, becausereturn false
halts event propagation on elements higher up in the DOM.Thanks for your plugin and for considering this change! ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Allow for jQuery higher up DOM?’ is closed to new replies.