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

Not expected values ​​in onValuesChange method. #478

Open
tippillow opened this issue Dec 3, 2020 · 0 comments
Open

Not expected values ​​in onValuesChange method. #478

tippillow opened this issue Dec 3, 2020 · 0 comments

Comments

@tippillow
Copy link

I am using Form.List inside Form.List and when removing the inner formList onValuesChange() is giving away an unexpected second argument.
form.getFieldsValue() returns the same. But if you call the onFinish() method, then it is correct the value I expected.

demo - https://stackblitz.com/edit/react-izdsz3-ubydjz?file=index.js.

How to reproduce:

  1. Open console.
  2. Click button "Add field"
  3. Clcik button "Add nickname"
  4. Delete field.
  5. Click button "Submit"
  6. Check the differences
    image

UnFtFxyKMM

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