[email protected] breaks list search filter with [email protected]
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 [email protected] 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):
Thanks for the report. A sandbox reproducing the issue would have been welcome. But I managed to reproduce. Indeed there seems to be an infinite render loop. Note: The issue is not present in React Admin v5
bug reproduction for : React-admin version: 5.6.4 React version: 18.3.1 Browser: google chrome
when if fact there is a title named "Qui tempore rerum et voluptates" like showed in this screenshot
Can you link to a reproduction please ? Either a codesandbox, or a repository.
@saloua-ch In the simple demo the title filter is an exact match filter, not a 'like' filter. As I said, I tested for the issue in RA v5 and it is not present. It only affects v4.
@slax57 thank you dor the clarification