-
-
Notifications
You must be signed in to change notification settings - Fork 709
RangeError: Position out of range when deleting after multi-column block #2621
Copy link
Copy link
Open
Labels
needs-triageIssue has not yet been reviewed or classified by maintainers.Issue has not yet been reviewed or classified by maintainers.
Description
What’s broken?
When using the multi-column feature, continuously pressing Backspace after typing in a block following a multi-column layout causes a runtime error:
RangeError: Position X out of range
This crashes the editor and breaks further interaction.
What did you expect to happen?
- Text should be deleted normally
- Editor should remain stable
- No runtime errors should occur
Steps to reproduce
- Insert a multi-column block (e.g., 3 columns)
- Move cursor to the next block (below the columns)
- Type some text (e.g., aaa)
- Press and hold Backspace to delete continuously
BlockNote version
"@blocknote/xl-multi-column": "0.47.1"
Environment
Chrome
Additional context
- This issue appears to be related to how the multi-column structure interacts with deletion logic.
- Likely caused by an invalid ProseMirror transaction when deleting across structural boundaries.
- Happens more frequently when holding down Backspace (rapid consecutive deletes).
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 💖
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs-triageIssue has not yet been reviewed or classified by maintainers.Issue has not yet been reviewed or classified by maintainers.