-
-
Notifications
You must be signed in to change notification settings - Fork 618
Open
Labels
bugSomething isn't workingSomething isn't working
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 💖
Screencast.from.2025-09-13.21-28-46.webm
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working