Using component templates inside a shadow DOM #197
lsmenicucci
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using a shadow DOM, inner elements can only be accessed by
<root-el>.shadowRoot.querySelector()
method. Like in the example:In contrast, the current implementation of
resolveTemplate()
in src/walk.ts makes use ofdocument.querySelector()
which results in one's inability to use component templates inside a shadow DOM.Perhaps if the template element could be passed directly to
$template
or an optional property like$templateLocation
is made available, the above issue could be avoided.Beta Was this translation helpful? Give feedback.
All reactions