Replies: 1 comment
-
Updating to include a codesandbox: https://codesandbox.io/s/formik-fieldarray-from-docs-1-0b0uh?file=/src/ConfigForm.js Steps to replicate:
So it seems like the validation state is not updated correctly or finished? |
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
-
We want to use the onBlur validation, since the onChange starts validation too soon on text inputs, while the user is typing.
However, now when I validate, if there's an error in 1 of the arrays, the other array shows up as null:
And if I add a 3rd item to the
networks
, and remove it, then the original 2networks
show as null:we are using YUP to validate:
What could be causing the
null
values in the errors, instead of just returning empty?If I click any field in the form the errors go away...
Beta Was this translation helpful? Give feedback.
All reactions