devtools icon indicating copy to clipboard operation
devtools copied to clipboard

dirtyFields will not update after reset when using devtools

Open Ekalos opened this issue 3 years ago • 0 comments

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

Ekalos avatar Mar 06 '22 09:03 Ekalos