Difficulties to add event listener on download links
-
Hi,
First thank you for this plugin, really useful.
However, I had some troubles trying to add an event listener on the download links in order to display a modal before starting the downloading process.
I had to delete the node elements and re-create them to make it works:// Delete and re-create elements to avoid stopImmediatePropagation() issues var btnClone = btn.cloneNode(true); btn.parentNode.replaceChild(btnClone, btn);
Would it be possible to fix this by changing lines 32 and 39 in somdn_script.js with e.preventDefault() instead of e.stopImmediatePropagation()?
Thanks again for this plugin,
Pierre Jehan
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Difficulties to add event listener on download links’ is closed to new replies.