dirtyFields are not updated when I change radio inputs with initial values #11715
Unanswered
brilovichgal
asked this question in
Q&A
Replies: 1 comment
-
I haven't found any problem with dirtyFields in your code snippet. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi,
I think there is a bug in react hook form when dealing with dirtyFields with input of type "radio" with initial value.
When changing the value of the input to some other value ("alon" for example), the formState.dirtyFields keeps being empty, and also the formState.isDirty is false.
This happens in the specific situation when i have set initial value to the radio, and try to change to other value.
Like in this code example:
Beta Was this translation helpful? Give feedback.
All reactions