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

Error on calling setState inside onValuesChange method if any of the Form.Item is inside Form.List #25071

Closed
arptg opened this issue Jun 17, 2020 · 1 comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive

Comments

@arptg
Copy link

arptg commented Jun 17, 2020

  • [ * ] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Render Some Form.Item inside Form.List
  2. Put setState call inside onValuesChange method
  3. Change value inside the nested Form.Item

What is expected?

The state should be updated

What is actually happening?

throws an error - value.map is not a function

Environment Info
antd 4.3.4
React 16.3.1
System All
Browser All

I am not sure if this was the intended behaviour, if it is , why ?

@afc163 afc163 added the 🐛 Bug Ant Design Team had proved that this is a bug. label Jun 18, 2020
@zombieJ
Copy link
Member

zombieJ commented Aug 14, 2023

Close since codesandbox is gone.

@zombieJ zombieJ closed this as completed Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. Inactive
Projects
None yet
Development

No branches or pull requests

4 participants