react-component / form

React High Order Form Component(web & react-native)
http://react-component.github.io/form/
MIT License
1.81k stars 295 forks source link

Not expected values ​​in onValuesChange method. #478

Open tippillow opened 3 years ago

tippillow commented 3 years ago

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