Skip to content

[SpeedDial] Tooltip not closing when quickly moving the mouse away #25215

@m4theushw

Description

@m4theushw
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

If I quickly move the mouse away from the speed dial while a tooltip is open, when I open it again that previous tooltip will still be visible. Interacting via keyboard also causes this behavior.

speed-dial

Expected Behavior 🤔

The tooltip should not be already visible on the second time that the speed dial is open.

Steps to Reproduce 🕹

https://codesandbox.io/s/1ssec?file=/demo.tsx

Steps:

  1. Open the speed dial.
  2. Move the mouse over an action to open the tooltip.
  3. Move VERY QUICKLY the mouse away from the speed dial.
  4. Open again the speed dial.

Context 🔦

I noticed while doing #25166. It was also happening with the non-emotion component.

PR on the way.

Your Environment 🌎

`npx @material-ui/envinfo`
  System:
    OS: Windows 10 10.0.18363
  Binaries:
    Node: 12.16.2 - C:\node-v12\node.EXE
    Yarn: 1.22.5 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 6.14.4 - C:\node-v12\npm.CMD
  Browsers:
    Chrome: 88.0.4324.190
    Edge: Spartan (44.18362.449.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: speed dialChanges related to the speed dial.type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions