Skip to content
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

Closed
AlexandreBonaventure opened this issue Jul 9, 2020 · 0 comments
Closed

Can't render named slot conditionally #1557

AlexandreBonaventure opened this issue Jul 9, 2020 · 0 comments

Comments

@AlexandreBonaventure
Copy link
Contributor

AlexandreBonaventure commented Jul 9, 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 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant