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

After calling the resetFields method of the form, formState has a {undefined: undefined} property inexplicably #4435

Closed
1 task done
JustForLucky opened this issue Jul 27, 2021 · 1 comment
Labels

Comments

@JustForLucky
Copy link

JustForLucky commented Jul 27, 2021

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

Version

2.2.2

Environment

browser version

Reproduction link

https://2x.antdv.com/components/form-cn

Steps to reproduce

第一步:找到官网的form组件,https://2x.antdv.com/components/form-cn;
第二步:使用右侧导航栏选择“表单验证”,直达表单验证例子;打开浏览器的控制台的console;
第三步:按照要求输入表单的值,点击"create"按钮,在控制台查看输出的formState;
第三步:点击“reset”按钮,再次按照要求输入表单的值,再次点击“create”按钮,在控制台查看输出的formState,会发现多出一个{ undefined: undefined}属性。

What is expected?

2次输出的formState相同。

What is actually happening?

第一次输出的formState正常; reset后,再次create的输出的formState多出一个{ undefined: undefiend } 属性。

@github-actions github-actions bot changed the title 调用表单的resetFields方法后,formState莫名多出一个{ undefined: undefined } 属性 After calling the resetFields method of the form, formState has a {undefined: undefined} property inexplicably Jul 27, 2021
@github-actions
Copy link

github-actions bot commented Aug 1, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants