You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Svelte creates a custom element, if no child elements are initially passed in, the default <slot> tag will not be created, causing subsequently added child elements to not be rendered in the slot.
Describe the bug
When Svelte creates a custom element, if no child elements are initially passed in, the default
<slot>
tag will not be created, causing subsequently added child elements to not be rendered in the slot.It seems that this part might be responsible:
svelte/packages/svelte/src/internal/client/dom/elements/custom-element.js
Line 267 in f579a3b
Hope this helps with troubleshooting the issue.
Reproduction
https://github.com/CLDXiang/svelte-custom-element-no-default-slot-bug
Initial state:
Append some children:
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: