Issue with Validation in Checkbox Group Implementation #4764
Unanswered
zaidchauhan
asked this question in
Q&A
Replies: 1 comment
-
You have the right idea with But you can use I suppose we can expose vee-validate internal functions that may help you do these operations but It is very doable user-land. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
I am attempting to create a wrapper component (CheckboxGroup) to group checkboxes with the same name and treat them as a single unit. The issue I'm encountering is that validation does not trigger on value change, likely because the child checkboxes and the group share the same name.
Is there a way to make this work, or is there a more effective approach to achieve this goal?
View the issue on StackBlitz
Reproduction steps
...
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
https://stackblitz.com/edit/vee-validate-issue-template-fygtva?file=src%2Fcomponents%2FCheckboxGroup.vue
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions