[Vuejs]-Modal form Validation errors persist when reopened

0👍

Assuming that you are using vee-validate,

To clear all errors,

this.$validator.errors.clear();

To clear 1 single error only,

this.$validator.errors.remove('LastName');

Add 1 of the code above to the modal close event listener and the error would be gone the next time you opened it..

Leave a comment