`@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

Abierto
#11,085 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@effect-bot ya está trabajando en esto.

Desde el 29/11/2026.

  • #652 de @effect-bot — abierto

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
typescript
Área
frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
16.7k
Forks
808
Merge medio
21 h 22 min
PR fusionados (30 d)
486

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Effect-TS/effect

Todos los issues de Effect-TS/effect

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.