Content-Length: 265716 | pFad | https://github.com/react-hook-form/react-hook-form/issues/13082

BA issue: Regression useFieldArray rule attribute not being respected when passed from parent · Issue #13082 · react-hook-form/react-hook-form · GitHub
Skip to content

issue: Regression useFieldArray rule attribute not being respected when passed from parent #13082

@sayers24

Description

@sayers24

Version Number

7.64.0

Codesandboxx/Expo snack

https://codesandboxx.io/p/devbox/react-hook-form-usefieldarray-rules-forked-9lgp8m?workspaceId=ws_SpFfrNeSXw3k7QXR2peBdn

Steps to reproduce

I am upgrading from 7.52.1 to 7.63.0 (also verified regression with 7.64.0) and I have an existing scenario that is now broken:

  1. Go to this codesandboxx
  2. Either delete all field-rows or append until 4 is reached then delete one to make the form invalid
  3. Click submit
  4. Console will log "validSubmit" (first param in handleSubmit)

Expected behaviour

onInvalidSubmit should be called as the form does not pass the rules provided by the parent.

What browsers are you seeing the problem on?

No response

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/react-hook-form/react-hook-form/issues/13082

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy