organized errors for FieldArrays with composition API #5069
Unanswered
phislop-sra
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
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a sensible way to get field-level (rather than form-level) errors from a field array without using vee-validate components? e.g. getting
{"users[1].name": ["name is required"]}
rather than just{"users": ["name is required"]}
I know it's possible to get that granularity by calling
defineField
on each field item (e.g.defineField('users[' + idx + '].name')
), but I don't know of a non-hacky way to call that in the template, and I don't see how the collection of defined fields would be kept up-to-date with pushes and pops on the fieldArray.Is there a purely composition-API way of accomplishing this?
Beta Was this translation helpful? Give feedback.
All reactions