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

Add new event test for frameworks breaking event bubbling. #2420

Open
ChrisShank opened this issue Sep 9, 2024 · 3 comments
Open

Add new event test for frameworks breaking event bubbling. #2420

ChrisShank opened this issue Sep 9, 2024 · 3 comments

Comments

@ChrisShank
Copy link

ChrisShank commented Sep 9, 2024

Some component frameworks (e.g. react, svelte 5, solid) use "synthetic event delegation" to invoke event handlers. When used in conjunction with custom elements that attach event handlers outside of these synthetic event systems this will subtly break usage ofevent.stopPropagation(). The proposal here is to add a new test to detect when this happens and ding component frameworks that don't comply.

This issue is spurred by a conversation with @KonnorRogers and @lukewarlow on twitter.

Examples of this in action(not to pick on anyone in particular):

@ChrisShank
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants