Enter Key Breaks Children in Custom Toggleable Blocks
@matthewlipski is already working on this.
Since Sep 30, 2025.
Assessment
This issue has not been assessed yet.
Description
Describe the bug
When pressing Enter inside a custom toggleable block, the children are broken unexpectedly.
- If the cursor is on the toggle title, all children should be preserved, but they are not.
- If the cursor is inside the children, pressing Enter should move the cursor to the next child (if it exists) or create a new default block.
To Reproduce
- Open the example: https://www.blocknotejs.org/examples/custom-schema/toggleable-blocks
- Place the cursor in the toggle title and press
Enter. - Observe that the children are broken.
Misc
- Node version: 22.13.0
- Package manager: npm
- Browser: Firefox
- I'm a sponsor and would appreciate if you could look into this sooner than later 💖
https://github.com/user-attachments/assets/eb85ca78-7b74-497d-944e-27017ba6f675
- Dominant language
- TypeScript
- Stars
- 10.2k
- Forks
- 772
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 17
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TypeCellOS/BlockNote
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
TypeCellOS/BlockNote#3098 ·
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
TypeCellOS/BlockNote#3073 ·
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
TypeCellOS/BlockNote#3072 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
TypeCellOS/BlockNote#2949 · 1 comment ·
-
a11y
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
TypeCellOS/BlockNote#2855 ·
All issues in TypeCellOS/BlockNote
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·