Skip to content

react-hook-form@7.55 breaks list search filter with react@18.2 #10656

Description

@palmique

What you were expecting:
Search filter input of list view works as documented.

What happened instead:
Search filter input crashes browser once it gets focused.

Steps to reproduce:
Focus search filter input ("q").

Related code:
Just use sample code from React-Admin's "Get started".

Other information:
Issue was introduced after upgrading to react-hook-form@7.55
Seems to be major upgrade which requires react@^9.0.0
As workaround, use override in your project's package.json:

"overrides": {
"react-admin": {
"react-hook-form": "~7.54.0"
}
},

Environment

  • React-admin version: 4.16
  • Last version that did not exhibit the issue (if applicable):
  • React version: 8.2
  • Browser: Chrome, Edge
  • Stack trace (in case of a JS error):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions