react-hook-form: 6.8.x useFieldsArray + clearErrors not working

Describe the bug since 6.8.0 clearErrors called with array of fields stops working works with 6.7.2

To Reproduce Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/react-hook-form-useform-template-forked-j4wqk?file=/src/index.js
  2. Click on ‘Step 1: fill error’ button
  3. Click on ‘Step 2: reset error’ button

Codesandbox link (Required) https://codesandbox.io/s/react-hook-form-useform-template-forked-j4wqk?file=/src/index.js

Expected behavior field1 error should be cleared

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 23 (14 by maintainers)

Commits related to this issue

Most upvoted comments

hmmm, i may try something (having an idea).