pro-components
pro-components copied to clipboard
Form 组件 onFinish 的 values 参数 和 form.getFieldsValue() 结果不一致
trafficstars
Reproduction link
https://codesandbox.io/p/sandbox/proform-date-bug-m6jjyp
Steps to reproduce
- fill in the form fields
- submit
- check the data log inside the console: the
contractTimeis not available in the Form.onFinish.values
What is expected?
values.contractTime supposed to be Date[], same as the form.getFieldsValue().contractTime result.
What is actually happening?
values.contractTime is empty object array.
form.getFieldsValue().contractTime is Date array.
| Environment | Info |
|---|---|
| antd | 5.24.3 |
| React | 19.0.0 |
| System | macos |
| Browser | chrome |