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

getChildNodes on a shadow root component (with slotted children) returns empty when all the ancestors are light DOM components #4076

Closed
abdulsattar opened this issue Mar 19, 2024 · 1 comment · Fixed by #4098
Labels

Comments

@abdulsattar
Copy link
Contributor

abdulsattar commented Mar 19, 2024

Description

In this scenario

<light>
  <shadow>
    <h1>Slotted into shadow</h1>
  </shadow>
</light>

and if you do this.getChildNodes() in shadow JS, we get empty list.

Playground repro:
https://stackblitz.com/edit/salesforce-lwc-emwswn

Copy link

git2gus bot commented Mar 19, 2024

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

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