[tooltip] Escape stack broken for unfocused Tooltip inside Dialog
Open
component: tooltip
- Dominant language
- TypeScript
- Stars
- 10.9k
- Forks
- 543
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 101
Description
# Bug report
## Current behavior

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](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
Contributor guide
Assessment
This issue has not been assessed yet.