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] When hovering on the tooltips, they should disappear #35416

Closed
2 tasks done
altsst opened this issue Dec 9, 2022 · 2 comments
Closed
2 tasks done

[tooltip] When hovering on the tooltips, they should disappear #35416

altsst opened this issue Dec 9, 2022 · 2 comments
Labels
component: tooltip This is the name of the generic UI component, not the React module! support: question Community support but can be turned into an improvement

Comments

@altsst
Copy link

altsst commented Dec 9, 2022

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example:
https://mui.com/material-ui/react-tooltip/

Steps:

  1. Hover over item with Tooltip
  2. Hover over the tooltip itself

Current behavior 😯

When hovering on the tooltips, they do not disappear.

Expected behavior 🤔

When hovering on the tooltips, they should disappear.

Context 🔦

I need the tooltips to hide when they are hovered so that the users can access buttons underneath it.

Apparently this feature existed before but was marked as a bug:
#11705

In my opinion there should be an option to disable this Behaviour

Your environment 🌎

npx @mui/envinfo
  System:
    OS: Windows 10 10.0.19041
  Binaries:
    Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 108.0.5359.99
    Edge: Spartan (44.19041.1023.0), Chromium (106.0.1370.42)
  npmPackages:
    @emotion/react: ^11.10.5 => 11.10.5
    @emotion/styled: ^11.10.5 => 11.10.5
    @mui/base:  5.0.0-alpha.103
    @mui/core-downloads-tracker:  5.10.11
    @mui/material: ^5.10.11 => 5.10.11
    @mui/private-theming:  5.10.9
    @mui/styled-engine:  5.10.8
    @mui/system:  5.10.10
    @mui/types:  7.2.0
    @mui/utils:  5.10.9
    @types/react:  17.0.11
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    typescript:  4.7.4

Chrome has been used

@altsst altsst added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Dec 9, 2022
@sai6855
Copy link
Contributor

sai6855 commented Dec 10, 2022

@altsst Add disableInteractive prop to hide tooltip on hover: https://mui.com/material-ui/react-tooltip/#interactive.

<Tooltip disableInteractive title="Delete">
  <IconButton>
    <DeleteIcon />
  </IconButton>
</Tooltip>

@altsst
Copy link
Author

altsst commented Dec 10, 2022

@sai6855 Thanks! That works perfectly

@altsst altsst closed this as completed Dec 10, 2022
@oliviertassinari oliviertassinari added component: tooltip This is the name of the generic UI component, not the React module! accessibility a11y support: question Community support but can be turned into an improvement and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 19, 2022
@oliviertassinari oliviertassinari changed the title When hovering on the tooltips, they should disappear. [tooltip] When hovering on the tooltips, they should disappear Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tooltip This is the name of the generic UI component, not the React module! support: question Community support but can be turned into an improvement
Projects
None yet
Development

No branches or pull requests

3 participants