vee-validate icon indicating copy to clipboard operation
vee-validate copied to clipboard

calling validate() from useForm is not updating the meta.validated from useField anymore

Open aishwarya257 opened this issue 1 year ago • 0 comments

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

  1. Call validate() manually after having error values in your form in v4.12.5
  2. 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

aishwarya257 avatar Jan 31 '24 16:01 aishwarya257