mui / mui/base-ui

[tooltip] Closing tooltip when scroll starts vs when scroll stops

Open
#1,447 8 comments 0 reactions 2 assignees Claimed by @colmtuite View on GitHub
component: tooltip type: bug
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

# Bug report

## Current behavior

Hi, great library! We're using this at OpenSea and using the attachToCursor option to power one of our Collection link hoverables. However, we are noticing issues where if people are scrolling while it's attaching, it can get to a state where it no longer disappears even if the mouse is no longer on the anchor.

https://www.loom.com/share/9608676b8c904397af37d46b059ea9b9

Here's a video showcasing this. I don't have a reproducible example in a sandbox at the moment, but wondering if as a stop gap we could at least expand the Tooltip behavior to close if scrolled? Not sure of the best solution here. Thanks!

## Expected behavior

Provide a clear and concise description of the expected behavior.

## Reproducible example

Link to a CodeSandbox, StackBlitz, or other IDE.

## Base UI version

For example v1.0.2

## Which browser are you using?

Chrome/Safari/Firefox/Safari iOS etc.

## Which OS are you using?

Mac OS/Windows/Other etc.

## Which assistive tech are you using (if applicable)?

Voiceover/JAWS etc.

## Additional context

Provide any additional context that might help us identify the problem and find a solution.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.