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
Are you submitting a bug report or a feature request?
bug report
What is the current behavior?
If we provide an asynchronous function as validate prop to FieldArray component to perform asynchronous validation of field array itself, then unresolved promise is set as FINAL_FORM/array-error for this field. This causes problems if we want to check the form for errors or display an error message because the promise, even if it resolves to "undefined", is in the form's errors object.
What is the expected behavior?
FieldArray's asynchronousvalidate function resolved with:
undefined (null) - field is valid, no errors set as FINAL_FORM/array-error
otherwise - resolved value set as FINAL_FORM/array-error