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

Possible fix for Shadow DOM retargeting #819

Open
raphaelsantos opened this issue Feb 4, 2020 · 0 comments · May be fixed by #853
Open

Possible fix for Shadow DOM retargeting #819

raphaelsantos opened this issue Feb 4, 2020 · 0 comments · May be fixed by #853
Labels

Comments

@raphaelsantos
Copy link

Currently using Choices in a WebComponent results in issues with some events, most notably the "click" event due to retargeting in events that bubble out of the shadow dom. It has been pointed out in this issue:
#805

Keyboard events however work as expected, since the event listeners are not being added to the documentElement, but instead they are added to this.containerOuter.element, so the event.target doesn't get "retargeted" by the time the event is captured. Is there a reason to give different treament to these events types?

In a simple test on my WebComponent where I have a simple single select input everything seemed to work as expected when adding all listeners to this.containerOuter.element.

@daicambruzzi daicambruzzi linked a pull request Apr 14, 2020 that will close this issue
8 tasks
@mtriff mtriff linked a pull request Dec 22, 2021 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant