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

Field validation goes before removing field from array #72

Open
serhey-88 opened this issue Jul 28, 2021 · 0 comments
Open

Field validation goes before removing field from array #72

serhey-88 opened this issue Jul 28, 2021 · 0 comments

Comments

@serhey-88
Copy link

serhey-88 commented Jul 28, 2021

Bug report

What is the current behavior?

Using final-form-arrays of all the versions above 1.1.2 the validation on the field goes before the field was removed from array. So it shows incorrect result on UI.

Example

Steps to reproduce:

  1. Add 2 or more Customers
  2. Check all 'Has required fields' checkboxes
  3. Click on submit button
  4. Remove the first customer (red cross)

Expected result: All validation errors for the rest of the fields are shown

Actual result: No validation erros are shown

Other information

When using version 1.1.2, it works as expected.

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

1 participant