Quick questions. I have a form with vuelidate, When the form is submitted improperly the validations works perfectly. but when all the validations are passed(all the fields are filled correctly) I don't get any response from the form(I did console log to present some message)
Submit btn:
<input type="submit" class="formBtn">
Submit method:
submitForm () {
this.$v.$touch();
if (!this.$v.$invalid){
console.log('Submitted');
}
},
Form configured like this:
<form @submit.prevent="submitForm">
If the validations are not correct, error spans are appearing correctly, but if all the fields are correct, nothing happens when I press the submit btn.