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

default slots without the new template syntax wont reevaluate v-if #9644

Labels

Comments

@AwsmOli
Copy link

AwsmOli commented Mar 7, 2019

Version

2.6.4

Reproduction lin

https://jsfiddle.net/0p6t7csx/3/
https://jsfiddle.net/n5wm23jt/

Steps to reproduce

use the toggle button - the syntax used in line 29 seems to not work as expected

What is expected?

All 3 paragraphs should always print the same text

What is actually happening?

the default slot without the new template syntax will only rerender once and then stay the same,


im not sure if the syntax for default slots is now still to be used that way - or if we always need to use a template now - but it worked with 2.6.0 to 2.6.3 and then stopped working in 2.6.4

//EDIT: updated reproduction (closed that slot tag)

@posva
Copy link
Member

posva commented Mar 7, 2019

your slot wasn't closed (look at the console error 🙂 )

@posva posva closed this as completed Mar 7, 2019
@AwsmOli
Copy link
Author

AwsmOli commented Mar 7, 2019

sorry for that - i closed the slot now and the error still persists:
https://jsfiddle.net/n5wm23jt/

we have the same issue in our larger project and switched to version 2.6.3 to make it work for now

@Justineo
Copy link
Member

Justineo commented Mar 8, 2019

The repro seems to be valid now. Thanks.

@Justineo Justineo reopened this Mar 8, 2019
@Justineo Justineo added the bug label Mar 8, 2019
kiku-jw pushed a commit to kiku-jw/vue that referenced this issue Jun 18, 2019
Lostlover pushed a commit to Lostlover/vue that referenced this issue Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment