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
initialValue not changed on props changed #10612
Comments
That is why it is called initial value. |
handleSubmit= (values) => { called this.props.form.resetFields() after form submit resolved my problem |
This was referenced Mar 27, 2019
it because initialValue will set in Form componentDidMount lifecycle, /** for reset all input values: */
this.props.form.resetFields();
/** for update inputs values: */
this.props.form.setFieldsValue(newFormFieldsValues); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
3.5.3
Environment
浏览器版本
Reproduction link
http://www.baidu.com
Steps to reproduce
What is expected?
initialValue will changed on this.props.pkid changed
What is actually happening?
initialValue is fist seted value
The text was updated successfully, but these errors were encountered: