Skip to content

Commit 375b03b

Browse files
Fixed delete handler attempting to merge next block when in last block (#485)
1 parent 36d17aa commit 375b03b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/pm-nodes/BlockContainer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ export const BlockContainer = Node.create<{
567567
state.selection.from
568568
)!;
569569

570-
const blockAtDocEnd = false;
570+
const blockAtDocEnd = endPos === state.doc.nodeSize - 4;
571571
const selectionAtBlockEnd = state.selection.from === endPos - 1;
572572
const selectionEmpty = state.selection.empty;
573573
const hasChildBlocks = node.childCount === 2;

0 commit comments

Comments
 (0)