Rich text editor: toolbar More menu closes on first click after the window narrows

Abierto
#6,462 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
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript
Área
frontend

Línea de trabajo

Start with ToolbarMoreButton.vue and the constrainToScrollParent=false case, then look at the KDS 5.10.1 popover boundary/close-on-scroll handling introduced by #6457, since the issue suggests the fix may live there rather than in Studio. Read #6457 first, then reproduce per the steps (900px, click More, Escape, narrow to 520px, click More) and confirm on the pre-#6457 base whether the regression is in Studio or KDS. Done means the More menu stays open on the first click at narrowed widths in both the question and answer-choice toolbars.

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

Descripción

bug DEV: frontend TAG: design system

❌ 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

After the window narrows, the first click on the editor toolbar's More button opens its menu, which closes again ~25ms later. The second click works.

  • Reproduced 3/3; also at 1100→700px and 820→520px.
  • Affects both the question and the answer-choice toolbars.
  • Only menus with constrainToScrollParent=false are affected (ToolbarMoreButton.vue).

Errors and logs

None.

Expected behavior

The first click opens the More menu and it stays open.

User-facing consequences

Editors on narrowed windows must click More twice.

Steps to reproduce

  1. Open a resource's Edit details → Questions; open the Q1 editor with the window at 900px.
  2. Click More, then press Escape.
  3. Narrow the window to 520px.
  4. Click More. The menu opens and immediately closes.

Context

  • Seen while reviewing #6457 (KDS bump to 5.10.1).
  • Cause: the menu first renders at its old wide-layout position; focusing its first item scrolls the window ~436px, and the popover's close-on-scroll shuts it.
  • Not yet checked on the pre-#6457 base. KDS 5.10.1 rewrote the popover's boundary handling, so the fix may belong in KDS.

AI usage

Claude Code found and reproduced this in the browser while reviewing #6457 and drafted this issue.

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.