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

Object Validation #2388

Closed
pmiguelmartins opened this issue Sep 29, 2019 · 4 comments · Fixed by #2397
Closed

Object Validation #2388

pmiguelmartins opened this issue Sep 29, 2019 · 4 comments · Fixed by #2397
Labels
🐛 bug Unintended behavior

Comments

@pmiguelmartins
Copy link

Versions

  • vee-validate: 3.0.7
  • vue: 3.11

Describe the bug
After version 3.0.7 is an object is empty the validation fails, with version 3.0.6 works just fine

To reproduce

<ValidationProvider
name="testing"
rules="required"
v-slot="{ errors }"

var record = {} -> fails validation

var record = { test : '' ) -> works validation

Expected behavior
In version 3.0.6 if the object was empty checks validation and gives error ..
with version 3.0.7 and 3.0.8 don't gives error

@logaretm
Copy link
Owner

Could you create a sample that produces this? You can use jsfiddle or codesandbox.

@pmiguelmartins
Copy link
Author

I don't use jsfiddle or code sandbox ...

I will try to create a sample project to show

I just think that is an error because if I downgrade to version 3.0.6 the same code works just fine

Thanks

@logaretm
Copy link
Owner

No problem, I just cannot reproduce the problem. Waiting for your sample.

@pmiguelmartins
Copy link
Author

pmiguelmartins commented Sep 29, 2019

Hi there ...

Here is an example ..
link

If you click on clear first and then in check ... doesn't give an error

With version 3.0.6 this code works just fine

Pedro Martins

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

Successfully merging a pull request may close this issue.

2 participants