Skip to content

Commit

Permalink
fix reported case
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Dec 18, 2024
1 parent 61f5713 commit 1e50d7e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1878,8 +1878,13 @@ export function canMoveBlock( state, clientId ) {
) {
return false;
}
const editingMode = getBlockEditingMode( state, rootClientId );
return editingMode !== 'disabled' && editingMode !== 'contentOnly';
const rootEditingMode = getBlockEditingMode( state, rootClientId );
const blockEditingMode = getBlockEditingMode( state, clientId );
return (
rootEditingMode !== 'disabled' &&
( rootEditingMode !== 'contentOnly' ||
blockEditingMode !== 'contentOnly' )
);
}

/**
Expand Down

0 comments on commit 1e50d7e

Please sign in to comment.