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-model won't bind undefined properties #3312

Closed
yaquawa opened this issue May 20, 2021 · 4 comments
Closed

v-model won't bind undefined properties #3312

yaquawa opened this issue May 20, 2021 · 4 comments
Labels
🐛 bug Unintended behavior

Comments

@yaquawa
Copy link

yaquawa commented May 20, 2021

Versions

  • vee-validate: 4.2.2
  • vue: 3

Describe the bug
I've been using ver 4.1.10 for a while, after I updated to 4.2.2, I found that the v-model won't bind undefined properties anymore.

To reproduce
https://codesandbox.io/s/vee-validate-multi-step-form-forked-skcqz?file=/src/App.vue

Expected behavior

Just let it bind undefined properties.

@logaretm logaretm added the 🐛 bug Unintended behavior label May 23, 2021
@logaretm
Copy link
Owner

This is interesting, apparently when you pass a non-existent prop Vue treats it as if you didn't pass anything which triggers a "no-model-events" code path for vee-validate implemented for Vue 3.1.x in #3294 (#3295)

I found a workaround and should be tagged shortly, thanks for reporting this.

@yaquawa
Copy link
Author

yaquawa commented Jun 4, 2021

Hi @logaretm , thanks for checking! So have this issue been fixed?

@logaretm
Copy link
Owner

logaretm commented Jun 4, 2021

Yea, it has been fixed since my earlier comment.

@yaquawa
Copy link
Author

yaquawa commented Jun 5, 2021

Got it, thanks a lot!

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

No branches or pull requests

2 participants