Skip to content

[tooltip] Trigger does not work when rendering disabled elements #3075

Description

@BrandonGoren

Bug report

Current behavior

Tooltips do not appear when the trigger is wrapped around a disabled button

Expected behavior

Tooltips should appear

It does not show because mouseOnly is true in FloatingUI's useHover and disabled elements do not fire mouse events. Pointer events do still fire, and setting mouseOnly to false or undefined will allow the tooltip to show up (this could also be intentional for accessibility reasons, but the behavior differs from Radix)

Reproducible example

https://stackblitz.com/edit/vitejs-vite-994xiqtx?file=src%2FApp.tsx

Base UI version

^1.0.0-beta.4

Which browser are you using?

Chrome

Which OS are you using?

Mac OS

Additional context

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: tooltipChanges related to the tooltip component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions