Skip to content

[tooltip] Escape stack broken for unfocused Tooltip inside Dialog #4022

@hoiheart

Description

@hoiheart

Bug report

Current behavior

Image

When there is a tooltip inside a dialog, if the tooltip is opened without focus on the tooltip trigger and ESC is pressed, the tooltip's handleOpenChange does not fire. Instead, the dialog's handleOpenChange fires immediately, making escape stack control impossible.

Reproducible example

https://codesandbox.io/p/sandbox/4s92t5

Base UI version

v1.1.0

Which browser are you using?

Chrome

Which OS are you using?

Mac OS

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: tooltipChanges related to the tooltip component.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions