Skip to content

dirtyFields will not update after reset when using devtools  #121

@Ekalos

Description

@Ekalos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions