Skip to content

Form doesn't change pristine value after removing second item #107

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

Open
gregorysl opened this issue Aug 12, 2019 · 3 comments
Open

Form doesn't change pristine value after removing second item #107

gregorysl opened this issue Aug 12, 2019 · 3 comments

Comments

@gregorysl
Copy link

Are you submitting a bug report or a feature request?

Bug report

What is the current behavior?

When initial values are set with minimum 2 entries, clicking remove on second item doesn't change pristine state of form

What is the expected behavior?

Form shouldn't be pristine, allowing me to save changes

Sandbox Link

Taken from readme simple example and added only following part

      initialValues={{
        customers: [
          {
            firstName: "John",
            lastName: "Doe"
          },
          {
            firstName: "Henry",
            lastName: "Ford"
          }
        ]
      }}

https://codesandbox.io/s/react-final-form-field-arrays-eutnd

What's your environment?

 "final-form": "4.12.0",
    "final-form-arrays": "1.1.2",
    "react": "16.8.6",
    "react-dom": "16.8.6",
    "react-final-form": "4.1.0",
    "react-final-form-arrays": "2.0.3",

Tested on Win10 Chrome

Other information

@snrkulagin
Copy link

Having the same issue

@dim2k2006
Copy link

The same for me (

Does anyone have a solution?

@gregorysl
Copy link
Author

@erikras any idea?

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

3 participants