Form isDirty issue (antd) #3152
Replies: 2 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
kaisiant
-
|
This doesn't work with async data when i need to do form.setFieldsValue |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I need some help about the form state. I am using form provider with antd UI.
I realize if one of the fields does not set default values and the form state isDirty will be invalid even if I just editing on the field that have default value.
CSB: https://codesandbox.io/s/react-hook-form-formstate-dirty-touched-submitted-forked-dk0lb?file=/src/RandomComponent.js
First input has default value
Second input no default value
Expected result:
delete "a" from the first input => isDirty: falseBeta Was this translation helpful? Give feedback.
All reactions