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
Render conditionally a named slot with v-if directive.
What is expected?
When v-if condition is true it should render correctly and override the default slot content. In the repro above, the caption should switch alternatively to show I'm rendered in a slot and I'm the default slot
What is actually happening?
The slot fails to render. In the repro I'm the default slot is always shown.
If you remove the v-if directive, I'm rendered in a slot shows up as expected
The text was updated successfully, but these errors were encountered:
underfin
added a commit
to underfin/vue-next
that referenced
this issue
Jul 10, 2020
Version
3.0.0-beta.20
Reproduction link
https://jsfiddle.net/naj7v2yu/
Steps to reproduce
Render conditionally a named slot with v-if directive.
What is expected?
When v-if condition is true it should render correctly and override the default slot content. In the repro above, the caption should switch alternatively to show
I'm rendered in a slot
andI'm the default slot
What is actually happening?
The slot fails to render. In the repro
I'm the default slot
is always shown.If you remove the
v-if
directive,I'm rendered in a slot
shows up as expectedThe text was updated successfully, but these errors were encountered: