Material-ui: Tooltip doesn't disappears if item is clicked and focused

Created on 23 Jul 2018  路  5Comments  路  Source: mui-org/material-ui

@oliviertassinari following the release of 1.4.1 there is a new issue where if there is an item that can be clicked and focused (e.g. a button or radio button) the tooltip no longer disappears.

https://codesandbox.io/s/qjxo6nv7w

  • [x] This is a v1.x issue.
  • [x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Tooltip should disappear when mouse is moved away after click.

Current Behavior

The tooltip doesn't disappear.

Steps to Reproduce

In sandbox:
https://codesandbox.io/s/qjxo6nv7w

  • hover over a form item to display tooltip
  • click item
  • move mouse away

image

Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | v1.4.1 |
| React | v16.3.2 |
| browser | Chrome |

Tooltip wontfix

Most helpful comment

Great, is that what disableFocusListener is for?

All 5 comments

It's a feature: #12131

Great, is that what disableFocusListener is for?

Yes

I would suggest that this be set to true by default. It seems nonsensical behaviour for simple button icons, and means people need to spend some time Googling their way to this page to resolve it (it's difficult to interpret this behaviour from the docs alone) .

@rooch84 For reference, Bootstrap is using the same default: https://getbootstrap.com/docs/4.1/components/tooltips/#examples.

Was this page helpful?
0 / 5 - 0 ratings