Open ravijayaramappa opened 5 years ago
This repo has installed the Git2Gus application. If you want to know how it works navigate to https://lwc-gus-bot.herokuapp.com/#how-it-works
@reiniergs is this comment expected? ^^
This is definitely a bug. I think we got confused with retargeting, because you do see div.manual as a target of a click at any level, but if you query the light dom, it is always about the shadow that you belong to.
@diervo yes
@ravijayaramappa I think this is now fixed, but should be validated.
@caridy Still see the issue in @lwc/engine v1.0.3
Description
This issue concerns to inconsistency in how light dom querying works when a component receives slot content from a parent component and it passes that content to its own child component. So container sends slot content to parent and parent sends slot content to child. In the native web components model, the slot content send by the container is only queryable in the light dom of the intermediate parent. The child components light dom queryselector returns null.
In LWC, the slot content is queryable both in the intermediate parent and the child.
Steps to Reproduce
c-nested-slot-container
c-nested-slot
c-child
LWC behavior: https://playground.lwcjs.org/projects/dO-PRqNg7/3/edit WebComponents behavior: https://jsbin.com/parijoz/edit?html,js,output
Expected Results
Behavior consistent with WC
Browsers Affected
All
Version
0.35.7