You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit textfield (optional). Notice that isDirty correctly sets to true.
Click "Reset".
Editing textfield will not set isDirty to true anymore.
Looks like this behavior was Introduced in 7.51.0.
If isSubmitting and isValid are removed from the code, it seems that isDirty behaves as expected. This implies that the erroneous behavior of isDirty may be introduced while reading other parts of the formState.
Expected behaviour
isDirty should be true when value differs from default.
What browsers are you seeing the problem on?
Firefox, Chrome
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Version Number
7.51.2
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/compassionate-https-9kh375
Steps to reproduce
Expected behaviour
isDirty should be true when value differs from default.
What browsers are you seeing the problem on?
Firefox, Chrome
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: