Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Beta]: Keyboard input on a selection that mixes a keycap and plain text changes nothing

Aperta
#5,295 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@natamox ci sta già lavorando.

Dal 26/10/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Start in the /docs/kbd demo and trace the More > Keyboard input toolbar action for a selection containing both kbd marked and plain text. Compare how the action handles a mixed selection with its behavior on platejs.org; the issue does not identify the implementation files or tests, so locate the relevant code and coverage first. Done when toggling the mixed selection gives the whole selection one state, matching the reported expected behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug plugin:basic-nodes target:beta

Testing lane

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

Summary

On /docs/kbd, selecting text that is partly a keycap (the kbd mark) and partly plain text, then choosing More > Keyboard input, leaves both parts as they were: the keycap stays and the plain text stays plain. On platejs.org the same toggle removes the keycap from the whole selection. Sin found it in Firefox.

Reproduction

Repro 1: /docs/kbd, Firefox

An agent ran this in Firefox on macOS on 2026-10-21, five times including once in a fresh tab, and twice on platejs.org.

  1. Open https://beta.platejs.org/docs/kbd.
  2. In the demo editor, make a line that reads KEY as a keycap followed by PLAIN as plain text.
  3. Select the whole line, KEYPLAIN.
  4. In the floating toolbar, choose More > Keyboard input.

Results:

  • Beta: KEY keeps its keycap, and PLAIN stays plain. The menu item has no visible effect on this selection.
  • https://platejs.org/docs/kbd: KEY loses its keycap, and the whole line is plain text.

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

Expected

Keyboard input on a mixed selection gives the whole selection one state. platejs.org removes the keycap from all of it. Sin expects the same.

Actual

As listed under Results. Beta changes neither part.

Environment

  • Exact next commit/Beta package version: NOT_ENOUGH_INFO. The page does not show its build.
  • Firefox on macOS, 2026-10-21; the version was not noted. Sin's hand check on 2026-10-23 (Beijing time).
  • Not tried in Chrome, Safari or on a phone. Not replayed on the live Beta after 2026-10-23.

Caveat

The cause was not traced.

Evidence

  • Repro 1: the agent's recording, 0:13, Beta on the left and platejs.org on the right, recorded separately and aligned by step, with a zoomed view of the line below each side. An internal record number in the title is covered with a dark box. The zoomed views show the result: Beta still has KEY as a keycap before PLAIN, and platejs.org shows KEYPLAIN as plain text.
Repro 1 — Firefox, /docs/kbd (Beta left, platejs.org right)

https://github.com/user-attachments/assets/7a1f1459-e49c-4d0a-9fd0-2e294934a46c

Related

  • None.
Lingua principale
TypeScript
Stelle
16.6k
Fork
993
Merge medio
20h 1m
PR unite (30g)
60

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di udecode/plate

Tutte le issue di udecode/plate

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.