Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declarative o-tracking not working in Shadow DOM #1835

Open
aendra-rininsland opened this issue Oct 2, 2024 · 0 comments
Open

Declarative o-tracking not working in Shadow DOM #1835

aendra-rininsland opened this issue Oct 2, 2024 · 0 comments
Labels
feature New feature request o-tracking

Comments

@aendra-rininsland
Copy link
Member

We use Shadow DOM extensively in the CCC project and are finding o-tracking doesn't work in declarative mode when the data-* attributes are rendered in the Shadow DOM.

I suspect it'd work if you added a config option for setting delegation target that allowed you to pass a different value (e.g., shadowRoot) to Delegate() here:

https://github.com/Financial-Times/origami/blob/main/libraries/o-tracking/src/javascript/events/click.js#L74

@aendra-rininsland aendra-rininsland added feature New feature request o-tracking labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request o-tracking
Projects
None yet
Development

No branches or pull requests

1 participant