array with v-for and checkbox, when only one checkbox #4902
Unanswered
jayenashar
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 have code that is something like this:
<Field name="members" type="checkbox" :value="member.value" v-for="member of members" :key="member" />
This works fine, except when
members
only has one element. Is there a way to tell vee-validate that it should be an array, so it's always an array for the form submit handler and yup field validation?Beta Was this translation helpful? Give feedback.
All reactions