From ffec1c498d29659a71731bf4b5136adcbeff80c5 Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Thu, 10 Apr 2025 19:36:33 +0200 Subject: [PATCH] Return true from delete block commands (to prevent any other commands to run) --- src/editor/block/commands.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/editor/block/commands.js b/src/editor/block/commands.js index f67ccbe..0126356 100644 --- a/src/editor/block/commands.js +++ b/src/editor/block/commands.js @@ -360,6 +360,7 @@ export const deleteBlock = (editor) => ({state, dispatch}) => { selection: EditorSelection.cursor(newSelection), annotations: [heynoteEvent.of(DELETE_BLOCK)], })) + return true } export const deleteBlockSetCursorPreviousBlock = (editor) => ({state, dispatch}) => { @@ -380,4 +381,5 @@ export const deleteBlockSetCursorPreviousBlock = (editor) => ({state, dispatch}) selection: EditorSelection.cursor(newSelection), annotations: [heynoteEvent.of(DELETE_BLOCK)], })) + return true }