[Vuejs]-Vuelidate not working as expected on blur

0👍

First, remove the .native modified from the input and simply use:

<input class="form-control" @blur="$v.partner.email.$touch()"/>

Also, inside beforeSave method call the $touch() event like:

beforeSave() {
  this.$v.$touch();
  if (this.$v.$invalid) {
    alert("Error");
  } else {
    this.save();
  }
}

Leave a comment