Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Validation in Checkbox Group Implementation #4722

Open
1 of 5 tasks
zaidchauhan opened this issue Apr 5, 2024 · 0 comments
Open
1 of 5 tasks

Issue with Validation in Checkbox Group Implementation #4722

zaidchauhan opened this issue Apr 5, 2024 · 0 comments

Comments

@zaidchauhan
Copy link

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?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

No response

Demo link

https://stackblitz.com/edit/vee-validate-issue-template-fygtva?file=src%2Fcomponents%2FCheckboxGroup.vue

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant