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
It’s reasonable to want to pass a slot through to a child component; the natural way to do this without adding a new DOM node is like this:
<slotname="foo" slot="foo"></slot>
Unfortunately, this doesn’t work, and silently does doesn’t render the slot.
The current workaround is the same as for using components as a slot: create a regular DOM element and use that as the slot:
<divslot="foo"><slotname="foo"></slot></div>
Vaguely related to #1037/#1713 which are about slot not yet working on components (it currently explicitly fails at compile time with a helpful message, which is a much happier failure mode).
zlsa, dimfeld, shuizhongyueming, englishmatt, dkzlv and 1 more