Using Form Field Child Component with an input slot doesn't communicate with form properly. #4606
Unanswered
richcoleman-alphatrust
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use a child component to hold all the formatting of the form field group and validation while having the actual input in the parent file via a
<slot></slot>
but it doesn't seem to be as easy as it was in Vee-Validate v3 or lower. Visuals and code below...(I have a much more complex version of this in Vue 2 and Vee-Validate 3 but I've simplified what I'm trying to do below. I'm trying to update to Vue 3 so I have to update to Vee-Validate 4 and it's not obvious how I would do this now. )
Submitting the form will trigger the validation
But entering data seems to have no effect and it behaves like there's no data in the fields at all.
Login.vue
FieldGroup.vue
Beta Was this translation helpful? Give feedback.
All reactions