E
E
EVOSandru62018-11-07 17:33:53
Vue.js
EVOSandru6, 2018-11-07 17:33:53

How to put :data-vv-as and :data-vv-delay attributes into vue-datepicker so they work?

Hello
Here, I found an example in the sandbox how to stick vue-validate into vue-datepicker ( https://github.com/charliekassel/vuejs-datepicker):
https://codesandbox.io/s/387mjz0j4q
Validation works, but I'm not sure that apply : data-vv-as and : data-vv-delay attributes.
Does anyone know how to put : data-vv-as and :data-vv-delay attributes into vue-datepicker so they work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-11-07
@0xD34F Vue.js

not sure if :data-vv-as and :data-vv-delay attributes apply

And this insecurity of yours - is it based on anything? I know that everything applies.
Maybe it's because in your example, instead of the error message that vee-validate generates, some other one is shown? - that's why you don't see the field name change. And the apparent lack of delay is due to the fact that the only validation scenario you've tested is the form submission, and in the corresponding handler, the validation occurs immediately.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question