mui / mui/material-ui

[Tooltip] Stays visible when scrolling away

Open
#44,548 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

scope: tooltip type: bug
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Steps to reproduce

Steps:

  1. Open this link to live example
  2. Hover over one of the tooltips in the Last Name column
  3. Scroll away (without moving the mouse)
  4. You'll notice the tooltip stays open
Current behavior

The tooltip stays open on scroll .

Expected behavior

The tooltip should close when scrolled away from.

Context

We are using a tooltip inside of a data grid. When a user hovers the tooltip, we have an api call that happens to populate the it's contents. This call takes milliseconds to complete. When a user hovers the tooltip, and scrolls in the Datagrid, the tool tip stays open even though the user's cursor is no longer hovering the tooltip.

Order ID: 80452

Your environment
npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: Tooltip, stays open, tooltip hover

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the StackBlitz example in LastName.js and reproduce the issue by hovering a tooltip, then scrolling without moving the pointer. Compare the current behavior with the expected close-on-scroll behavior. Done means the tooltip closes when scrolling moves it away from the cursor, while preserving the documented hover behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.