-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
React Admin buttons don't trigger tooltips #10223
Comments
Thanks for the report. The problem comes from react-admin's A PR to fix this is welcome. |
Hi! The bug label was removed recently, so I wanted to confirm if this issue is still open for work or if it has already been resolved. |
The issue is still open, but it's categorized as an enhancement instead of a bug. We'll welcome any PR providing an implementation. |
Hi @fzaninotto , It seems that the issue is caused by the fact that custom buttons like Here’s an example of how to fix it: <Tooltip title="Create Post" >
<div>
<CreateButton />
</div>
</Tooltip> Let me know if you need further clarification! |
What you were expecting:
When I wrap a React Admin custom button with a
Tooltip
, (for exampleCreateButton
) I expect theTooltip
to be shown when I hover over it.What happened instead:
The tooltip is not shown when hovering over a custom button wrapped by a
Tooltip
.Steps to reproduce:
Related code:
Check the example where in the
postListActions
I have aCreateButton
wrapped by aTooltip
and a material-ui hereOther information:
This wasn't introduced now, it seems like an existing issue.
On
material-ui
doc they have this section talking about custom child componentsEnvironment
The text was updated successfully, but these errors were encountered: