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

Tooltip shows up on window focus, not only on hover #12131

Closed
2 tasks done
wederer opened this issue Jul 13, 2018 · 3 comments
Closed
2 tasks done

Tooltip shows up on window focus, not only on hover #12131

wederer opened this issue Jul 13, 2018 · 3 comments
Assignees
Labels
bug 🐛 Something doesn't work component: tooltip This is the name of the generic UI component, not the React module!

Comments

@wederer
Copy link
Contributor

wederer commented Jul 13, 2018

My colleague has found a bug in Material UI concerning tooltips.

  • This is a v1.x issue (v0.x is no longer maintained).
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Tooltip should only show up when hovering on element.

Current Behavior

Once you clicked on an element with a tooltip the tooltip will show up after refocusing the browser window.

Steps to Reproduce

Example: https://material-ui.com/demos/tooltips/

  1. Click on an element with tooltip (e.g. the "+" button)
  2. Minimize browser
  3. Maximize browser
  4. Tooltip will show up
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: tooltip This is the name of the generic UI component, not the React module! labels Jul 13, 2018
@oliviertassinari
Copy link
Member

@wederer Thanks for the report. I agree the tooltip should stay visible if still focused when the user mouseleave the element. On the other hand, the Minimize/Maximize Browser behavior is expected.

@chenop
Copy link
Contributor

chenop commented Jul 15, 2018

@oliviertassinari Can you please rephrase and describe the expected behavior?

@oliviertassinari oliviertassinari self-assigned this Jul 16, 2018
@oliviertassinari
Copy link
Member

oliviertassinari commented Jul 16, 2018

I have found a solution. I'm following the same behavior as Bootstrap, we only hide the tooltip when the user has completely stopped interacting with the reference element (blur & leave).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: tooltip This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

3 participants