react-scroll icon indicating copy to clipboard operation
react-scroll copied to clipboard

Is there any way to disable preventDefault/stopPropagation for link with scroll

Open IxxyDev opened this issue 3 years ago • 1 comments

I have events in Google Tag Manager(GTM), activated by clicking on a link, which is also a scroller. But because of event.preventDefault() GTM does not catch this click for analytics.

Is there any salvation for this?

IxxyDev avatar Jun 16 '21 20:06 IxxyDev

You could listen to the events and then trigger the GTM, or scroll programatically.

fisshy avatar Jun 17 '21 05:06 fisshy