Skip to content

Commit

Permalink
Handle ! blockAType.merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Oct 9, 2023
1 parent 12c441f commit 1171b18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-editor/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 1171b18

Please sign in to comment.