[Vuejs]-VeeValidation returns always true

1👍

Using vee-validate, you have to explicitly extend vee-validate with any rules you want. There is a specific example here in the documentation that covers how to do that:

import { extend } from 'vee-validate';
import { required, min_value } from 'vee-validate/dist/rules';

extend('min_value', min_value);
extend('required', required);

If you don’t do that, your rules are just ignored and the form is always validated as being valid.

Also if you are using nuxt, see the notes here

👤Ryley

Leave a comment