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

Custom Elements V3 - Shadow DOM bind:this returns undefined #2338

Closed
DOCS-kdu3 opened this issue Mar 29, 2019 · 1 comment
Closed

Custom Elements V3 - Shadow DOM bind:this returns undefined #2338

DOCS-kdu3 opened this issue Mar 29, 2019 · 1 comment

Comments

@DOCS-kdu3
Copy link

As the title says, the bind:this returns undefined for Custom Elements, and I believe it's due to the Shadow DOM. Below is the demonstrative REPL.

https://v3.svelte.technology/repl?version=3.0.0-beta.21&gist=37a2d6fd64e2e167ed61f60c78293d6a

@DOCS-kdu3
Copy link
Author

DOCS-kdu3 commented Mar 29, 2019

Nevermind. My confusion came from querySelectors in the shadow dom in my pet project, and not initially using the onMount hook in my REPL.

The REPL has been updated to work properly.

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

1 participant