mirror of
https://github.com/TanStack/devtools.git
synced 2026-11-16 10:49:48 +00:00
* feat(devtools): add openAsModal to use the panel over app modal dialogs A dialog opened with showModal() makes the rest of the page inert, the devtools included, and no z-index or popover gets past that. With `openAsModal: true`, while the panel is open and the app has a modal dialog open, the devtools root moves into a modal dialog of its own shown on top. It moves back when the panel or the app dialog closes. Escape closes only the panel: the hook prevents the browser from passing the same Escape on to the app dialog. A non-modal <dialog open> does not block the devtools, so it needs nothing. Fixes #369 * fix(devtools): keep openAsModal on top of later dialogs and release removed ones Two cases left the devtools or the page stuck: - The app opened another modal dialog while the panel was on top. That dialog became the topmost modal and the devtools were inert behind it. The host is now shown again when an app dialog opens after it. - The app removed an open dialog without close(), for example on unmount. That is a child list change, which the observer did not watch, so the host stayed modal and the page stayed inert. The observer now watches child list changes too. |
History
|
|
|---|---|---|
| .. | ||
| apps | ||
| helpers | ||