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

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

Open
2 of 5 tasks
OsamaHaikal opened this issue Sep 5, 2024 · 0 comments
Open
2 of 5 tasks

Comments

@OsamaHaikal
Copy link

OsamaHaikal commented Sep 5, 2024

What happened?

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

Screenshots

Screencast.from.2024-09-05.09-51-44.mp4

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?

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant