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
Make sure isFormDirty and isFieldDirty are updated on text input
Click on Reset Field button
Observe isFormDirty and isFieldDirty no longer working properly, always showing false
Expected behaviour
isDirty should continue to work after resetField(), same as it does after reset()
What browsers are you seeing the problem on?
No response
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:
geeee
changed the title
resetField sets same object as both defaultValues and formValues, breaking state updates
issue: resetField sets same object as both defaultValues and formValues, breaking state updates
Dec 21, 2023
geeee
added a commit
to geeee/react-hook-form
that referenced
this issue
Dec 21, 2023
Version Number
7.49.2
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/adoring-cdn-lsvhgf
Steps to reproduce
Expected behaviour
isDirty should continue to work after resetField(), same as it does after reset()
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: