We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
first render
first render with value
first render without value
Form.Item 在 didMount 时注册,这使得同步注册的 Form.Item renderProps 在字段注册事前 render 存在时序问题。
renderProps
The text was updated successfully, but these errors were encountered:
getFieldsValue
render props
Hi. @zombieJ I noticed that this issue was put forward in 2020, which is quite a long time ago. Is there any plan to fix this bug?
Sorry, something went wrong.
Translation of the subject: Form.Item renderProps can't get the field in the first render
This is affecting me too.
I get do getFieldsValue(true), but then I lose type safety because it return any instead of Values.
any
Values
form.getFieldsValue(true) don't return the initialValues in Form props after calling form.resetFields() with all fields untouched
form.getFieldsValue()在第一次渲染时。不能正常获取到initialvalue的值, 如果这个formitem的内容是在抽屉中,在第二次点开抽屉的时候,才能正常获取到initialvalue的值。例子 :https://codesandbox.io/s/ji-ben-shi-yong-antd-4-21-7-forked-6bnobg?file=/demo.js 这个首次渲染的问题 啥时候才能修复🤔 👀
No branches or pull requests
Reproduction link
Steps to reproduce
first render
What is expected?
first render with value
What is actually happening?
first render without value
Form.Item 在 didMount 时注册,这使得同步注册的 Form.Item
renderProps
在字段注册事前 render 存在时序问题。The text was updated successfully, but these errors were encountered: