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

Wrong Initial Value of meta.valid provided with validation schema on initial page load

Open OsamaHaikal opened this issue 1 year ago • 0 comments

What happened?

In Nuxt, the initial value of meta.valid is true while we are providing a validation schema with no hydration errors

Screenshots

https://github.com/user-attachments/assets/baecacb1-914d-4af5-b477-8ec8746f8cd5

Reproduction steps

  1. add useForm with one field
  2. add validation schema to this field
  3. refresh the page and observe the initial state of button

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • [X] Firefox
  • [ ] Chrome
  • [ ] Safari
  • [ ] Microsoft Edge

Relevant log output

form.meta.value.valid true form.meta.value.valid false

No response

Demo link

https://stackblitz.com/edit/nuxt-starter-t3btfg?file=app.vue

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

OsamaHaikal avatar Sep 05 '24 06:09 OsamaHaikal