-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
[Tooltip] Tooltips should not disappear when hovered #11705
Comments
The Tooltip doesn't disappear when hovered, it disappears when its child is no longer hovered. If you wanted to change that behaviour you could use a controlled Tooltop: https://codesandbox.io/s/81m1qp4p09 |
@mbrookes Thanks for your suggestion! I understand that this problem can be resolved by using controlled props, but in most cases, it makes sense that users would expect the tooltip to stay there when they are hovered, so I think this behavior should be supported natively by @material-ui. BTW, in your example, you forgot to implement |
Ah, I misunderstood your issue title "Tooltips should not disappear when hovered" as suggesting a cause and effect. Staying when hovered is the opposite. :-D
No, I left it as an exercise for the reader.:-) (or rathe,r I simply took the docs demo and removed the body of that function...) |
Expected Behavior
When hovering on the tooltips, they should not disappear.
Current Behavior
Tooltip still disappear when hovered.
Context
I need the tooltips to stay visible when they are hovered so that the users can copy the data in the tooltip.
I understand that this may be a problem for
Popper.js
. Any suggestions on how to enable this feature would be appreciated!Your Environment
The text was updated successfully, but these errors were encountered: