You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setFieldsValue 后getFieldsValue会获取到非 form结构的数据(After using setFieldsValue, calling getFieldsValue will retrieve the values, including those that are not part of the form structure.)
#601
Open
Now-Sprouting opened this issue
Jul 5, 2023
· 0 comments
当setFieldsValue设置回显值的时候,设置了数组结构中不存在的元素,在稍后的提交中这个多的元素还会存在,非数组结构就没有这个问题。
When using setFieldsValue to set the initial values for form fields, if you include an element that does not exist in the original data structure of an array, this extra element will still persist during subsequent form submissions. However, with non-array data structures, this issue does not occur.
当setFieldsValue设置回显值的时候,设置了数组结构中不存在的元素,在稍后的提交中这个多的元素还会存在,非数组结构就没有这个问题。
When using setFieldsValue to set the initial values for form fields, if you include an element that does not exist in the original data structure of an array, this extra element will still persist during subsequent form submissions. However, with non-array data structures, this issue does not occur.
demo:https://codesandbox.io/s/frosty-star-7h3x97?file=/App.tsx
The text was updated successfully, but these errors were encountered: