-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't render named slot conditionally #1557
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: