Closed perspolise closed 2 weeks ago
I think the one you should wrap with <Field>
is the <VueDatePicker>
, not the date input text. The dp text input just need the binding with the values from dp-input slot. Then you can bind the field to the VueDatePicker, set the modelValue with Field's value, and handle the @update:modelValue
here i update the stackblitz
Indeed, check vee-validate
section on validating custom components.
I'm trying to validate
vue-datepicker
forrequired
field usingvee-validate
like this:In action, after click on submit button
vee-validate
worked truly and show error message, But when I add date to the field and field is filled, validation not fix the error, still shown the error and I can't submit form. Demo is hereHow do can I integrate
vee-validate
withvue-datepicker
?!