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

オープン
#6,462 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
214
フォーク
327
平均マージ
17時間 5分
マージ済み PR(30日)
25

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

learningequality/studio のほかの issue

learningequality/studio の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。