[Vuejs]-How to have a prefilled forms with data from api and validate the forms with Element UI Vue

0👍

Validations are only executed when the form field is touched. Unless you execute the validation manually =>

this.$refs[form].validate((valid)=>

So probably when the form is loaded you should execute the validation

And when executing

this.$refs[form].validate((valid)=> {
   if (valid) {
     ... execute http request
   } else {
      return false;
   }
}

Leave a comment