Skip to content

Not expected values ​​in onValuesChange method. #478

Description

@tippillow

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions