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:
- Go to https://codesandbox.io/s/react-hook-form-useform-template-forked-j4wqk?file=/src/index.js
- Click on ‘Step 1: fill error’ button
- 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
- fix #2961 with nested array — committed to react-hook-form/react-hook-form by bluebill1049 4 years ago
hmmm, i may try something (having an idea).
thanks again @szymonlesisz