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
Form.Item dependencies don't work when a partial resetFields is triggered #31271
Comments
In addition, when we set the form value programmatically with |
Any news on this? |
+1 |
+1 |
Similar issue #33068 |
This part of the issue has been fixed in the It still doesn't seem like the best solution, but it helps me because I can use - form.resetFields(["hasName"])
+ // Gotta use setFieldsValue instead of resetFields since resetFields
+ // fails to trigger a dependency update.
+ form.setFieldsValue({ hasName: true }) |
+1 |
Reproduction link
Steps to reproduce
What is expected?
The name field should be re-mount when the hasName value changes. The disabled state of name field should be synchronized with hasName form value.
What is actually happening?
When
form.resetFields(["hasName"])
is called, the name field render is not updated.Note that with
form.resetFields()
without params or changing the hasName value by radio field, the re-mount works.The text was updated successfully, but these errors were encountered: