I'm facing an issue with html content dynamically injected inside unescapedHtml aura component. Inside the injected content there are links ('a' tags) which I want to intercept the click to perform stopPropagation / preventDefault in order to open the link (SF record) directly in a salesforce tab using workspace API. Those different approaches are dead ends:
- Listening to onclick event on a higher level never provides the good event target (the link).
- Manually trying to get the link elements at render time to add click event gives null
I'm running out of ideas to get the most of dynamic html + event handling, if someone has a trick, would be great. Thanks in advance