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

Ouverte
#6,462 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
25/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
javascript
Domaine
frontend

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
JavaScript
Étoiles
214
Forks
327
Merge moyen
17 h 5 min
PR mergées (30 j)
25

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de learningequality/studio

Toutes les issues de learningequality/studio

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.