`@effect/ui-devtools` (Effect-TS/ui): the inspector can't be clicked while a kit dialog is open, because the frame joins the top layer only while Time travel is paused

Aperta
#11,085 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@effect-bot ci sta già lavorando.

Dal 29/11/2026.

  • #652 di @effect-bot — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start with packages/ui-devtools/src/internal/layer.ts and trace how raise is called when Time travel pauses the page. Reproduce the issue with a kit Dialog open in Chromium, then investigate how top-layer changes can trigger raise on the live page. Done when the inspector remains clickable while dialogs or popovers are open; an open linked pull request already addresses this issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What happens

While a kit Dialog or Drawer is open in the live page, the @effect/ui-devtools inspector can't be clicked. Neither the launcher nor an open panel takes the click: the dialog's backdrop gets it.

Why

The inspector is an iframe with a high z-index. A kit dialog is a <dialog> in the top layer, which paints above any z-index. packages/ui-devtools/src/internal/layer.ts already has raise, which puts the frame in the top layer after the page's dialogs, but it is called only when Time travel pauses the page (around line 293, after root.pause). In the live page the frame stays under every open dialog.

Repro

  1. Add DevTools.layer to an app with a kit Dialog.
  2. Open the dialog.
  3. Click the inspector launcher. Nothing opens, and the click goes to the backdrop (which may close the dialog).
  4. Close the dialog. The launcher works.

Seen at Effect UI 4ac356c in Chromium.

Suggested fix

Call raise(frame, true) in the live page too, whenever a dialog or popover enters the top layer (a toggle listener on the document in capture mode, or a MutationObserver for open/popover changes), so the frame always joins the top layer last.

Lingua principale
TypeScript
Stelle
16.7k
Fork
808
Merge medio
21h 22m
PR unite (30g)
486

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Effect-TS/effect

Tutte le issue di Effect-TS/effect

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.