[QTI] Unmounting TipTap leaves its modal click listener attached

Abierto
#6,473 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, react
Área
frontend, testing

Línea de trabajo

Start by tracing the TipTap formula and image dialog positioning and cleanup paths mentioned in the issue, then inspect the tests that mount the editor in Jest/jsdom. Reproduce the capturing mousedown registration and compare it with removals when unmounting before and after attachment. Done means neither dialog leaves a document listener after unmount; the issue states it is not open for contribution.

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

Descripción

bug

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Target branch: unstable

Observed behavior

Unmounting an editor with its formula dialog open leaves a capturing mousedown listener on document. The image dialog uses the same positioning and cleanup code.

Expected behavior

Unmounting removes the editor's modal listeners and cancels pending registrations.

User-facing consequences

Repeated editor mounts and removals accumulate obsolete listeners that run on later clicks.

Steps to reproduce

  1. Spy on document.addEventListener and document.removeEventListener.
  2. Mount TipTap, open an editor-made formula, and wait for the capturing mousedown registration.
  3. Unmount without dismissing the dialog and compare the registrations with the removals.

Acceptance Criteria

  • Unmounting before or after attachment leaves no document listener from the formula or image dialog.

Context

Reproduced in Jest/jsdom on unstable at 2713cbf33.

AI usage

Codex drafted the issue from the #6309 review. It checked the actual document registrations in a mounted TipTap editor and read the image-dialog cleanup path.

Lenguaje dominante
JavaScript
Estrellas
214
Forks
327
Merge medio
17 h 5 min
PR fusionados (30 d)
25

Preparar el entorno

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 learningequality/studio

Todos los issues de learningequality/studio

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.