patchEventTarget doubles events (under special conditions)
See original GitHub issueWhen we deploy apm-agent-rum-js
to our (pretty large) e-commerce website, we are losing some click events.
overwriting the native prototype window.EventTarget.prototype
or wrapping the native events seems to have side effects
https://github.com/elastic/apm-agent-rum-js/blob/f58bc1b836f1e3caf07b668cbed6df619bdfdc92/packages/rum-core/src/common/patching/event-target-patch.js
Could you offer an config property to bypass the event listener wrapper?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7 (7 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @christianhaller3000 ,
Thanks for updating the details. Since it’s happening even when the agent is not initialised, there is not any configuration flag to prevent this from happening. We will need to have a look and fix it
cc @vigneshshanmugam
Thank you 😃