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
foo.html
The component foo uses the component bar.
The content of the first slot in foo should be projected into the default slot in bar.
The content of the second slot in foo should be projected into the named slot in bar.
@thomas-darling I’m not sure how fast we’ll be able to get around to fixing this particular scenario in vCurrent. If this is critical to you, one thing you could do is use the shadydom polyfill, turning it on to emulate always, and then set your custom elements to use shadow dom.
I'm submitting a bug report
1.10.0
Current behavior:
app.html
Let's say we have an app, which uses the component
foo
, providing content for its named slots.foo.html
The component
foo
uses the componentbar
.The content of the first slot in
foo
should be projected into the default slot inbar
.The content of the second slot in
foo
should be projected into the named slot inbar
.bar.html
The component
bar
has a default slot and a named slot, and presents the content of those.The result of the above looks like this - note how the content of the first slot is lost:
Expected/desired behavior:
The result of the above should like this:
For reference, here's the above, implemented using native Shadow DOM:
https://codepen.io/anon/pen/RzvZWB
It should be possible to project the contents of a named slot in a component, into the default slot of a child component.
The text was updated successfully, but these errors were encountered: