[Beta]: In the Excalidraw docs demo, Forward Delete and typing after a canvas undo and redo go into the heading
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Open https://beta.platejs.org/docs/excalidraw.
- Draw a rectangle on the canvas.
- Press ⌘Z, then ⌘⇧Z.
- 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
nextcommit/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.
- Ngôn ngữ chính
- TypeScript
- Star
- 16.6k
- Fork
- 993
- Merge trung bình
- 20 giờ 21 phút
- Pull request đã merge (30 ngày)
- 60
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của udecode/plate
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Beta]: After Enter saves an edited link URL, the link toolbar stays hidden while the caret is in the linkCó thể đã có người làm @zbeyens đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
udecode/plate#5314 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Beta]: The docs Demo example page starts with an empty editorCó thể đã có người làm @natamox đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
udecode/plate#5308 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của udecode/plate
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
gnosis/gnosis_vpn#661 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
content-freshness: staleOwnedContent doc comments still say 'complete receipt' (follow-up to #7912)Đang mởtriage:bug-verified
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 1 ngày
-
fix: reject sourceStorage/packagedStorage bucket that differs from the stack default (fail loud)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Eyevinn/open-videocore#1300 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
nextjs-tracking
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
cloudflare/vinext#4390 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kubernetes-sigs/headlamp#8175 ·
Maintainer thường phản hồi trong vòng 2 ngày