From 1171b187b3350ab690dfeea4ffd317160937c1c9 Mon Sep 17 00:00:00 2001 From: Ella Date: Mon, 9 Oct 2023 14:04:29 +0300 Subject: [PATCH] Handle ! blockAType.merge --- packages/block-editor/src/store/actions.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/block-editor/src/store/actions.js b/packages/block-editor/src/store/actions.js index 0acea689033bc..2975a41dbb9d9 100644 --- a/packages/block-editor/src/store/actions.js +++ b/packages/block-editor/src/store/actions.js @@ -1102,6 +1102,11 @@ export const mergeBlocks = return; } + if ( ! blockAType.merge ) { + dispatch.selectBlock( blockA.clientId ); + return; + } + const blockBType = getBlockType( blockB.name ); const { clientId, attributeKey, offset } = select.getSelectionStart(); const selectedBlockType =