resolvers icon indicating copy to clipboard operation
resolvers copied to clipboard

issue: removing entity from useFieldArray does not revalidate yup array validation

Open evgeniyworkbel opened this issue 6 months ago • 0 comments

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

  1. Click on button "add entity"
  2. See errors for two inputs about values are not unique
  3. Click on button "remove entity" for 2nd input
  4. 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

evgeniyworkbel avatar May 21 '25 11:05 evgeniyworkbel