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

v-if with slot #9422

Comments

@decademoon
Copy link
Contributor

Version

2.6.0

Reproduction link

http://jsfiddle.net/decademoon/hasupd08/8/

Steps to reproduce

Run the fiddle.

What is expected?

No error should occur.

What is actually happening?

An error occurs:

Property or method "value" is not defined on the instance but referenced during render.

Is 2.6.x supposed to be fully compatible with 2.5.x? The generated render function is different, and it looks like v-if has different priority than slot.

For reference, this fiddle shows it working in 2.5.16.

Might be related to #9391.

@yyx990803
Copy link
Member

yyx990803 commented Feb 5, 2019

The new syntax does work differently (v-if on the slot no longer has access to the slot scope and instead controls the existence of the entire slot), but the old syntax should indeed retain the old behavior (fixed)

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