resolvers
resolvers copied to clipboard
issue: removing entity from useFieldArray does not revalidate yup array validation
Version Number
5.0.1
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/usefieldarray-removing-entity-does-not-revalidate-schema-rhf-7-56-4-qgf5dr
Steps to reproduce
- Click on button "add entity"
- See errors for two inputs about values are not unique
- Click on button "remove entity" for 2nd input
- See error for 1st input which is kept, but must be dissapear
Expected behaviour
yup array validation recalculated when fields amount has changed (appended/removed)
What browsers are you seeing the problem on?
No response
Relevant log output
Code of Conduct
- [x] I agree to follow this project's Code of Conduct