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
I'm trying to figure out how to connect an Ant Design Vue form with useFieldArray in a simple way. It seems like the errors are incorrectly stacked in an array. For example, even with useField, the errors are added more like a stack. I expected a structure where the logic would be something like arrayName[id].field, but instead, they’re just printed as an array. The second object is simply the length of the first array plus one, and when an error is removed, the array logic gets messed up. I still haven't figured out how it’s supposed to work.
Maybe someone has already solved this and could help me out—I’d really appreciate the assistance!
I've tried using :id with :for, and name with FormItem, but it doesn’t seem to work. :(
Don't think that I can somehow use defineField for array, and leave with ti 😄 If it's so - I'm dumb!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
I'm trying to figure out how to connect an Ant Design Vue form with useFieldArray in a simple way. It seems like the errors are incorrectly stacked in an array. For example, even with useField, the errors are added more like a stack. I expected a structure where the logic would be something like arrayName[id].field, but instead, they’re just printed as an array. The second object is simply the length of the first array plus one, and when an error is removed, the array logic gets messed up. I still haven't figured out how it’s supposed to work.
Maybe someone has already solved this and could help me out—I’d really appreciate the assistance!
I've tried using :id with :for, and name with FormItem, but it doesn’t seem to work. :(
Don't think that I can somehow use defineField for array, and leave with ti 😄 If it's so - I'm dumb!
Not the same issue, but just a noticed Antd Vue have a lag with vee-validate library, (email field, for example from the docs example):
https://vee-validate.logaretm.com/v4/examples/ui-libraries#ant-design
Beta Was this translation helpful? Give feedback.
All reactions