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

Aperta
#6,462 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

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.

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

Descrizione

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.

Lingua principale
JavaScript
Stelle
214
Fork
327
Merge medio
17h 5m
PR unite (30g)
25

Preparare l'ambiente

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

Tutte le issue di learningequality/studio

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.