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
Validation is invalid on page load after updating to 4.4.0 #3342
Comments
The problems seems to be the |
Thanks for reporting this, this is caused by the schema strictness in v4.4 where previously vee-validate ignored any errors for non-existent fields. in 4.4 it doesn't do that anymore and when a field is rendered it inherits the previously generated errors for it as initial errors. While I'm not sure if this is the desired behavior or not, it defiantly doesn't reflect the correct state of the field which should be Will think of a way to differentiate the user-set initial errors from the others. |
Thanks. Can't wait to see this in a patch-release. Thanks for your fast response. |
Should be tagged in |
Not solved. |
I'm having exactly the same behavior on v4.4.5 |
Versions
Describe the bug
I created different input elements that are making use of vee-validate. On page-load the inputs are invalid, even though the schema is met.
This problem is not appearing in vee-validate < 4.4.0.
Demo: https://codesandbox.io/s/thirsty-sea-3mhf1?file=/src/App.vue
As you can see here, I got a v-if statement, that I am using in my app too, as the form-items are shown after some stuff has been loaded. In this demo, the setTimeout()-function is faking this behavior.
The text was updated successfully, but these errors were encountered: