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

Bubbling and non-composed events propagates outside the shadow tree #1882

Closed
pmdartus opened this issue May 20, 2020 · 3 comments
Closed

Bubbling and non-composed events propagates outside the shadow tree #1882

pmdartus opened this issue May 20, 2020 · 3 comments

Comments

@pmdartus
Copy link
Member

Description

Original post: Event propagation with bubble true in LWC
.

Events dispatched with { bubbles: true, composed: false } should bubble throw the shadow tree until reaching the root and should not escape outside. The following example showcases a scenario when the event keeps propagating into the parent shadow tree.

Steps to Reproduce

Playground: https://developer.salesforce.com/docs/component-library/tools/playground/S1wRP35ub/7/edit

Expected Results

handle click
handleNotifyInner in child
handleNotifyOutter in child

Actual Results

The ancestor component event listener is invoked even if the event doesn't bubble.

handle click
handleNotifyInner in child
handleNotifyOutter in child
handleNotifyOutter in parent

Browsers Affected

All

Version

  • LWC: 1.1.13-224.7
@git2gus
Copy link

git2gus bot commented May 20, 2020

This issue has been linked to a new work item: W-7596701

@ravijayaramappa
Copy link
Contributor

This is a duplicate of #1700

@pmdartus
Copy link
Member Author

Good catch @ravijayaramappa. Let me close this one, and I will consolidate the repro step in the parent issue.

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

No branches or pull requests

2 participants