Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Beta]: In the Excalidraw docs demo, Forward Delete and typing after a canvas undo and redo go into the heading

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

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

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

評価

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

調査の方向性

Start with the Excalidraw demo at /docs/excalidraw and compare its undo/redo behavior with the live site; the issue does not name source files or tests. Trace what receives ⌘Z after drawing, since focus moves from the canvas to the editor. Done when undo and redo keep focus in Excalidraw and subsequent Forward Delete and typing leave the heading unchanged.

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

説明

Testing lane

  • Repository: udecode/plate
  • Branch: next
  • Release channel: Beta
  • Exact commit/package version: NOT_ENOUGH_INFO

Summary

On https://beta.platejs.org/docs/excalidraw, after a shape is drawn on the canvas and ⌘Z then ⌘⇧Z are pressed, Forward Delete and x change the demo editor's first heading, Excalidraw, to xExcalidraw. Focus has left the canvas for the editor text. On https://platejs.org/docs/excalidraw, focus stays in Excalidraw after the same keys, and the heading does not change.

Reproduction

Repro 1: draw, undo, redo, Forward Delete and x, Safari

An agent ran this in Safari 27.0 on macOS on 2026-10-21, as part of Sin's assigned pages, with platejs.org beside it, and recorded both.

  1. Open https://beta.platejs.org/docs/excalidraw.
  2. Draw a rectangle on the canvas.
  3. Press ⌘Z, then ⌘⇧Z.
  4. Without clicking the text, press Forward Delete (Fn+Delete on a Mac keyboard), then type x.

Result: the heading above the canvas becomes xExcalidraw. The same sequence after five reloads gave the same result. On platejs.org focus stays in Excalidraw, and the heading is unchanged.

Sin confirmed it by hand on 2026-10-23 (Beijing time).

Repro 2: Chromium and WebKit

An agent ran the steps of Repro 1 on the live Beta in headless Chromium 149 and WebKit 26.5 (Playwright) on 2026-10-24. There is no recording. In both engines focus was in the Excalidraw container after the drawing and moved to the editor's contenteditable at ⌘Z, before Forward Delete. After x the heading read xExcalidraw.

Expected

Undo and redo in the canvas act on the drawing and leave focus in Excalidraw, and the keys typed next do not change the editor text, as on platejs.org.

Actual

As listed under Results. Focus moves to the editor at ⌘Z, and the next keys edit the start of the first heading.

Environment

  • Exact next commit/Beta package version: NOT_ENOUGH_INFO. The page does not show its build.
  • Repro 1: Safari 27.0 on macOS, 2026-10-21.
  • Repro 2: Chromium 149.0.7827.55 and WebKit 26.5 (Playwright, headless) on macOS, 2026-10-24.
  • Not tried in Firefox or on a phone.

Caveat

The cause is not traced. The probe shows the editor takes focus at ⌘Z, and the editor's selection is at the start of the document because the text was never clicked, so later keys land there. In Repro 1, a redo followed by x alone sometimes dropped the x, so the steps keep Forward Delete. #5300 shows the same end state after an emoji pick: focus returns to the editor, and typing goes to the start of the first heading.

Evidence

  • Repro 1: the agent's recording, 0:16, Beta on the left and platejs.org on the right. The two sides were recorded separately and aligned by step. The zoomed headings at the bottom are screenshots taken after the last key. The source ran at about 5 frames per second, and the last frame is held. A record number in its top-left corner is covered.
Repro 1 — Safari 27.0, /docs/excalidraw (Beta left, platejs.org right)

https://github.com/user-attachments/assets/a42f6750-22c3-4abb-bfd8-1d80b71eb815

Related

  • #5300: picking a callout emoji sends typing to the start of the first heading.
  • #5290: in the inlines example, mouse input misses the button text and the next edit lands at the previous caret position.
主要言語
TypeScript
スター
16.6k
フォーク
993
平均マージ
20時間 21分
マージ済み PR(30日)
60

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

udecode/plate のほかの issue

udecode/plate の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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