You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If using nested forms, as described by documentation, the errors from nested forms are indeed caught by the parent component. But there no way (unless hand-rolled) to group those errors into $validationGroups. This is particularly important in stepped forms where errors are scoped (grouped) by step, and especially if those nested form are reusable component instances, that cannot be hardcoded into root form state.
Type to validate on the "something" field, (see that $validationGroups catches the error and updates tab error count)
Type to validate on the nested form field
See error. Even if root form catches the error $validationGroups does not update to reflect nested errors.
Expected behavior
Expect that $validationGroups work with nested forms, either by passing the $registerAs path or the actual nested fields paths. But none of that works.
The text was updated successfully, but these errors were encountered:
Describe the bug
If using nested forms, as described by documentation, the errors from nested forms are indeed caught by the parent component. But there no way (unless hand-rolled) to group those errors into
$validationGroups
. This is particularly important in stepped forms where errors are scoped (grouped) by step, and especially if those nested form are reusable component instances, that cannot be hardcoded into root form state.Reproduction URL
https://codesandbox.io/s/multi-step-form-with-vuelidate-nested-forms-hrs266?file=/src/App.vue
To Reproduce
Steps to reproduce the behavior:
$validationGroups
does not update to reflect nested errors.Expected behavior
Expect that
$validationGroups
work with nested forms, either by passing the$registerAs
path or the actual nested fields paths. But none of that works.The text was updated successfully, but these errors were encountered: