-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Description
Say we have a component template that provides multiple named slots together with an unnamed one. The default slot is enclosed by named slots, like in the example.
<slot name="first"> <span>first slot</span> <slot> <p>this is the default slot</p> </slot> <slot name="second"> <span>second named slot</span> </slot>
The problem arises when you overwrite the named slots, but not the default one. In that case, every piece of whitespace gets loaded as the default slot, which makes it disappear from the DOM.
Metadata
Metadata
Assignees
Labels
No labels