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();
}
}
- [Vuejs]-VueJS children reloading parent
- [Vuejs]-Recurly.js failed to generate token for Nuxt+vue.js applicaiton
Source:stackexchange.com