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

[Beta]: The footnote docs demo shows each existing reference number twice, as 1[1]

オープン 初心者向け
#5,302 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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.

  1. Open https://beta.platejs.org/docs/footnote.
  2. 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 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 (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-15 is <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:145 and :186), so the child text 1 shows 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

udecode/plate のほかの issue

udecode/plate の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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