Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Dec 4, 2024
1 parent 05d0ea4 commit 9ac4a78
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ export default function useInput() {

// Ensure template is not locked.
if (
! __unstableIsFullySelected() &&
canInsertBlockType( blockName, rootClientId ) &&
! hasBlockSupport( blockName, 'splitting', false ) &&
! event.__deprecatedOnSplit &&
! __unstableIsFullySelected()
( hasBlockSupport( blockName, 'splitting', false ) ||
event.__deprecatedOnSplit )
) {
event.preventDefault();
__unstableSplitSelection();
Expand Down

0 comments on commit 9ac4a78

Please sign in to comment.