-
Notifications
You must be signed in to change notification settings - Fork 10
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
instances of <slot>-ed content and lit-element are rendering twice #433
Comments
Wonder if |
interesting... son yeah, that does seem to reenforce the idea that if the JavaScript is disabled (e.g. lit-element is not loaded things work O juste through serialization alone. Not sure what the tells us specifically, but another interesting data point none the less. 🤔 |
Saw this was happening in my personal website project as well. But after applying the notes in #454 , I can confirm it is fixed there too, no need for an upgrade, it can all be done from in the code! |
Type of Change
Summary
Coming out of #417 (comment), On the home page, the logos are and titles are being rendered twice. but it's the non slotted content?

Details
Spent a little time looking at the double rendering of
<eve-card>
and I think this may be related to LitElement.The serialized output is pretty much the same but it looks like in this branch, the content that should be in the Shadow DOM is duplicated in the Light DOM, where on the current site only the static content is in the light DOM.
Prod
Now
Has to do with something regarding Shadow DOM and possibly nested
<slot>
possibly and If I comment out the<script>
tag for card.js in the serialized index.html, there is no issues, so seems JavaScript / lit related.Couple things to look into
HTMLElement
The text was updated successfully, but these errors were encountered: