How to clear errors object in vee-validate?
I have come up with another solution that could help. in your input we'll add another listener so it will be like this:
<input type="email" name="email" v-model="info.email" v-validate="'required|email'" @input="validate">
then will add the validate function that call vee-validate function so your vue instance will be something like this:
var app = new Vue({
el: '#app',
data: {
info: { email: '' }
},
methods: {
onSignin: function (e) { },
clear_proc: function (e) {
delete this.info.email
this.errors.clear()
},
validate: function () {
this.$validator.validateAll();
}
}
})
Version (3.x)
this.$refs.observer.reset();