[Vuejs]-Vue.js input validation w VeeValidate – How to avoid onInput action while invalid

0πŸ‘

βœ…

like you access the errors collection in the VUE template, you can also access the same errors collection in your testValidation method

so replace

const ariaInvalid = this.$refs.inputTitle.getAttribute('aria-invalid')

with

 const ariaInvalid = this.$validator.errors.has('title')

grtz

Leave a comment