Enter, newline, and down arrow broken on Android
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- react, typescript
- Bereich
- frontend, mobile-dev
Rechercherichtung
Start by reproducing the issue on the BlockNote demo on Android and with desktop browser mobile emulation enabled before page load. Investigate the platform-detection path mentioned in the report and compare Enter and down-arrow behavior in those environments. Done means Enter creates a newline reliably and the down arrow moves the cursor to the next line without affecting tables or placeholder text.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What’s broken?
Using the enter key on Android has some weird behavior: you never get a new line, sometimes you get a space, sometimes it breaks a table, sometimes it shifts the placeholder/ghost text. Similar with the down arrow key: the cursor does not get moved down to the next line.
I can reproduce this on desktop Chrome and Firefox when emulating a mobile device with devtools only if it was emulating the mobile device at page load, and it stays broken after exiting mobile device emulation. Thus I believe this is triggered by some platform-detection by BlockNote rather than any true mobile text-editing bug.
https://github.com/user-attachments/assets/93203953-628a-44d8-b2af-04c7baa06c73
What did you expect to happen?
The enter key and down arrow should insert newlines or move down, respectively.
Steps to reproduce
On Android:
- Navigate to https://www.blocknotejs.org/demo
- Focus editor and hit enter
On desktop Chrome/Firefox:
- Open devtools, emulate a mobile device
- Navigate to https://www.blocknotejs.org/demo
- Focus editor and hit enter
BlockNote version
Latest; reproduced on @blocknote/shadcn 0.52, 0.53, 0.54.
Environment
Android 10; desktop Chrome/Firefox on Linux and MacOS in mobile emulation mode
Additional context
No response
Contribution
- I'd be interested in contributing a fix for this issue
Sponsor
- I'm a sponsor and would appreciate if you could look into this sooner than later 💖
- Vorherrschende Sprache
- TypeScript
- Sterne
- 10.2k
- Forks
- 772
- Ø Merge
- 6 T. 21 Std.
- Gemergte PRs (30 T.)
- 26
Entwicklungsumgebung
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TypeCellOS/BlockNote
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TypeCellOS/BlockNote#2949 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
a11y
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
TypeCellOS/BlockNote#2855 ·
Maintainer antworten meist innerhalb von 1 Tag
-
a11y
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
TypeCellOS/BlockNote#2829 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
a11y
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
TypeCellOS/BlockNote#2824 ·
Maintainer antworten meist innerhalb von 1 Tag
-
a11y
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
TypeCellOS/BlockNote#2811 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TypeCellOS/BlockNote
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
rohitg00/agentmemory#1428 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
boxlite-ai/boxlite#1729 ·
Maintainer antworten meist innerhalb von 1 Tag
-
detectors enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
SM260845/readme-gen#1 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
angular/angularfire#3774 ·
Maintainer antworten meist innerhalb von 2 Tagen