Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FieldArray record level async validation not working #479

Open
tedeschia opened this issue May 3, 2023 · 1 comment
Open

FieldArray record level async validation not working #479

tedeschia opened this issue May 3, 2023 · 1 comment

Comments

@tedeschia
Copy link

Are you submitting a bug report or a feature request?

Bug report

What is the current behavior?

When using record level validation and the result contains array level errors (with [ARRAY_ERROR] index), the array errors are not present in FieldArray meta.error.

What is the expected behavior?

Array level errors in async record validation must be present in the meta.error field

Sandbox Link

https://codesandbox.io/s/react-final-form-array-field-level-validation-forked-webyqs?file=/index.js
there are two forms with record level validation. the first one with async validation showing the issue, and the second one with the same validation but sync, working.

What's your environment?

FF 4.20.0

Other information

@gertdreyer
Copy link
Collaborator

This is a bug willing to accept a PR that fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants