react-hook-form / devtools

📋 DevTools to help debug forms.
https://react-hook-form.com/dev-tools
MIT License
643 stars 47 forks source link

dirtyFields will not update after reset when using devtools #121

Open Ekalos opened 2 years ago

Ekalos commented 2 years ago

Codesandbox link

https://codesandbox.io/s/react-hook-form-v6-formstate-forked-4qlr7d?file=/src/index.jsx

Reproduce

  1. type some characters in input box
  2. click reset button
  3. type in input box
  4. after above, you can see dirtyFields will not update. In devtools plane, only value field still update

Addition

  1. if you delete characters which type in step3, the dirtyFields will work on normal
  2. if you use resetField button or remove Devtool, the dirtyFields will work on normal