-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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 does not show when hover on MenuItem #10502
Comments
Clarification: A Tooltip will not appear on a disabled MenuItem. In your reproduction case, you've added the Tooltip to your Logout MenuItem which is disabled. It will appear for a MenuItem that is not disabled, but if there is not enough room for the tooltip, it will behave erratically. See this codesandbox . It increases the width of the Menu to accomodate the Tooltip and everything appears to be working. Is this your expected behavior? If not, would you please elaborate? |
Actually, I can show even on disable an item, just wrapped MenuItem to div, I've already solved this issue previously because tooltip populates events to the child. So you can check that it possible to show it on disabling one here https://codesandbox.io/s/6zx6j184z3 |
Okay, so it is possible to display a Tooltip on a disabled MenuItem if you wrap the entire MenuItem in a div and wrap that with a Tooltip 😄
Good clarification of the issue. |
@palaniichukdmytro
It's not pretty but maybe it's a quick fix for now. |
I have updated the reproduction to the latest version: https://codesandbox.io/s/926jp1qwyr. |
The only problem with this is that it's not accessibility friendly as you can't navigate using a keyboard only. |
When I hover over MenuItem component which wrapped to Toolip, Tooltip does not fire.
Expected Behavior
Tooltip should be shown on hover
Current Behavior
Tooltip does not show when hovering on MenuItem
Steps to Reproduce (for bugs)
https://codesandbox.io/s/9jyv058xyr
Context
Your Environment
The text was updated successfully, but these errors were encountered: