[Beta]: The footnote docs demo shows each existing reference number twice, as 1[1]
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 82/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
apps/www/src/registry/examples/values/footnote-value.tsxから始め、その参照ノードをapps/www/src/registry/components/editor/footnote.tsxでの描画と比較してください。報告によると、初期状態の参照には数字のテキストが含まれており、コンポーネントは自身の番号付きボタンの前にそれを描画します。一方、新しく挿入された参照は一度だけ表示されます。各参照の番号が一度だけ表示されるようにデモ値を更新し、4つのデモ参照が期待される[1]、[2]、[1]、[3]と一致することを確認してください。
索引モデルが 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/footnote, the four footnote references in the demo's starting content read 1[1], 2[2], 1[1] and 3[3]. On https://platejs.org/docs/footnote they read [1], [2], [1] and [3]. The leading number cannot be selected on its own, and a delete removes both. A reference inserted with [^4] shows only [4].
Reproduction
Repro 1: open the page, Safari
An agent ran this in Safari 27.0 on macOS on 2026-10-21, as part of Sin's assigned pages, and recorded it.
- Open https://beta.platejs.org/docs/footnote.
- Look at the references in the demo.
Result: they read 1[1], 2[2], 1[1] and 3[3], on each of five reloads. platejs.org shows [1], [2], [1] and [3].
Sin confirmed it by hand on 2026-10-23 (Beijing time). The number before the bracket cannot be selected by moving the caret, a delete removes both, and a new reference typed as [^4] is not doubled.
Repro 2: Chromium
An agent opened the page on the live Beta in headless Chromium 149 (Playwright) on 2026-10-24. There is no recording. Each reference is a sup element whose text is 1[1], holding a button whose text is [1], and the same for 2, 1 and 3.
Expected
Each reference shows its number once, as [1], as on platejs.org and as a reference inserted with [^4] does.
Actual
Each starting reference shows its number twice.
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 (Playwright, headless) on macOS, 2026-10-24.
- Not tried in Firefox or on a phone.
Caveat
From a reading of the code on next a32ed63c78:
- The demo value gives each reference a text child holding its number.
apps/www/src/registry/examples/values/footnote-value.tsx:13-15is<hfootnoteReference ref="1"><htext>1</htext></hfootnoteReference>, and refs 2, 1 and 3 follow the same shape. - The reference component renders its children and then its own
[{ref}]button (apps/www/src/registry/components/editor/footnote.tsx:145and:186), so the child text1shows before[1]. - A reference inserted from the combobox likely has an empty text child, which would explain why
[^4]shows once. So the fix is probably the demo value. Not tried as a code change.
Evidence
- Repro 1: the agent's recording, 0:10: the page, then a zoomed screenshot of the result, with the last frame held. A record number in its title is covered.
Repro 1 — Safari 27.0, /docs/footnote
https://github.com/user-attachments/assets/abe2ef04-2c85-4466-85e1-40aa923b262a
Related
- #5296: the Chinese docs pages, this one among them, fall back to English. Its cause differs.
- 主要言語
- TypeScript
- スター
- 16.6k
- フォーク
- 993
- 平均マージ
- 20時間 21分
- マージ済み PR(30日)
- 60
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
udecode/plate のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
[Beta]: After Enter saves an edited link URL, the link toolbar stays hidden while the caret is in the link対応中かも @zbeyens が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
udecode/plate#5314 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
[Beta]: The docs Demo example page starts with an empty editor対応中かも @natamox が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
udecode/plate#5308 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
e2e-failure ready-to-code
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
redhat-developer/rhdh-plugin-export-overlays#4616 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
ai-handle
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nextlevelbuilder/dewee-web-v2#73 ·
メンテナーはふだん 1 日以内に返信
-
backend bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
PoCInnovation/Distribox#255 ·
メンテナーはふだん 1 日以内に返信