Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Invalid prop rowClick supplied to Datagrid, expected one of type [string, function] when providing rowClick={false} #8822

Closed
davidhenley opened this issue Apr 10, 2023 · 1 comment · Fixed by #8823
Labels

Comments

@davidhenley
Copy link
Contributor

davidhenley commented Apr 10, 2023

When upgraded to latest version today I started receiving a warning for anything with a rowClick of {false} given to Datagrid

What you were expecting:
No warning

What happened instead:
Warning: Failed prop type: Invalid prop rowClick supplied to Datagrid, expected one of type [string, function].

CleanShot 2023-04-10 at 10 39 37

Steps to reproduce:

<ReferenceManyField>
  <Datagrid rowClick={false} />
</ReferenceManyField>

Related code:
CleanShot 2023-04-10 at 10 38 56

@slax57
Copy link
Contributor

slax57 commented Apr 11, 2023

Reproduced, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants