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

Prop validation occurring before a v-if #1262

Closed
rmp135 opened this issue Sep 6, 2015 · 2 comments
Closed

Prop validation occurring before a v-if #1262

rmp135 opened this issue Sep 6, 2015 · 2 comments

Comments

@rmp135
Copy link

rmp135 commented Sep 6, 2015

If a component is set up such that it requires a prop of type Object, yet it also has a v-if on the same property, the prop validation fails when the value is set to null.

I don't feel this should be the case as the v-if should have caught the falsey value and not rendered/removed the component (thus no validation should take place).

Here's a JSBin demonstrating what I mean.

@Mat-Moo
Copy link

Mat-Moo commented Sep 6, 2015

Answers my question as well vuejs/Discussion#373 !

@Mouvedia
Copy link

@yyx990803 is this fixed for the component tag as well ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants