vee-validate
vee-validate copied to clipboard
calling validate() from useForm is not updating the meta.validated from useField anymore
What happened?
Until v4.10.5, vee-validate sets meta.validated from useField to true when I call validate() from useForm manually.
But it is not working with the latest version 4.12.5
My requirement: When the user uploads a file with a set of values, I parse the file and assign the values to the respective form fields. If there is an error in the value, I want to show error immediately after file upload. This worked until 4.10.5. I show the error when meta.validated is set to true.
Any other way to achieve the same behavior would also be fine for me
Reproduction steps
- Call
validate()manually after having error values in your form inv4.12.5 - Expectation: meta.validated is set to
true
...
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
- [ ] Firefox
- [X] Chrome
- [ ] Safari
- [ ] Microsoft Edge
Relevant log output
No response
Demo link
Code of Conduct
- [X] I agree to follow this project's Code of Conduct