[Vuejs]-Cannot validate input fields in Vue.js

0👍

Follow up to my comment. Sorry, you are right, I did not try that.

The problem is that the validate method is asynchronous, so the flag is changed only after you return it, because the validation result was not awaited.

Here is a quick fix

    validateFirstTab: async function () {
      let flag = await this.$validator.validate();
      return flag;
    },

Leave a comment