[Beta]: The footnote docs demo shows each existing reference number twice, as 1[1]
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 82/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- react, typescript
- Ambito
- frontend
Direzione di ricerca
Inizia da apps/www/src/registry/examples/values/footnote-value.tsx e confronta i suoi nodi di riferimento con il rendering in apps/www/src/registry/components/editor/footnote.tsx. Il report dice che i riferimenti iniziali contengono testo numerico che il componente visualizza prima del proprio pulsante numerato, mentre i riferimenti appena inseriti vengono mostrati una sola volta. Aggiorna il valore di esempio in modo che ogni riferimento mostri il proprio numero una sola volta, quindi conferma che i quattro riferimenti di esempio corrispondono ai valori attesi [1], [2], [1], [3].
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 16.6k
- Fork
- 993
- Merge medio
- 20h 1m
- PR unite (30g)
- 61
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di udecode/plate
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
[Beta]: After Enter saves an edited link URL, the link toolbar stays hidden while the caret is in the linkForse già presa @zbeyens l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
udecode/plate#5314 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
[Beta]: The docs Demo example page starts with an empty editorForse già presa @natamox l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
udecode/plate#5308 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di udecode/plate
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
b310-digital/teammapper#1515 ·
I maintainer di solito rispondono entro 1 giorno
-
onenote
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
obsidianmd/obsidian-importer#689 ·
-
In a half-screen window, the title bar cuts the workspace and version names until they can't be readApertabug launch local use macOS Windows
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
[Integration]: eRPCAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ava-labs/builders-hub#4826 ·
I maintainer di solito rispondono entro 1 giorno
-
记忆分析的默认模型显示与实际使用不一致Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno