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 not hiding #3394

Open
pdiazdumont opened this issue Feb 25, 2025 · 0 comments
Open

Tooltip not hiding #3394

pdiazdumont opened this issue Feb 25, 2025 · 0 comments

Comments

@pdiazdumont
Copy link

pdiazdumont commented Feb 25, 2025

Bug report

Current Behavior

Following the sample in CodeSandbox, the button has a tooltip that appears when the trigger element is hovered but when the cursor moves away the tooltip remains.

Expected behavior

The tooltip should disappear as soon as the cursor moves away from the button.

Reproducible example

CodeSandbox

Image

Suggested solution

Additional context

The specific scenario is when the trigger element is positioned on top of an iframe, the tooltip sometimes hides correctly but in general it's stuck.
I tried disabling the pointer events in the iframe (for testing since they should remain enabled in a real scenario) and the tooltip works fine so maybe it's an issue with the pointer events bubbling in a wrong way in the tooltip implementation (?).

Your environment

Software Name(s) Version
Radix Package(s) radix-ui 1.1.3
React 18.2
Browser Edge (133.0.3065.82), Firefox (135.0.1)
Assistive tech
Node n/a
npm/yarn npm
Operating System Windows 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant