[Vuejs]-Vuelidate validates on page render

1👍

As the page renders vuelidate will run all the form validations. That’s how vuelidate works.

You need to check form for dirty along with it being invalid.

$v.$dirty() && $v.$invalid()

When you use $v.$touch() or $v.$reset(), vuelidate marks the form as dirty.

Please read https://vuelidate.js.org/#sub-v-values to understand the importance of these methods.

Leave a comment