diff --git a/packages/block-editor/src/store/selectors.js b/packages/block-editor/src/store/selectors.js index b3e3b621cda0b8..40b0d56473d010 100644 --- a/packages/block-editor/src/store/selectors.js +++ b/packages/block-editor/src/store/selectors.js @@ -2898,12 +2898,14 @@ export const getBlockEditingMode = createRegistrySelector( sectionRootClientId ); if ( ! sectionsClientIds?.includes( clientId ) ) { - return isBlockSelected( - state, - getBlockRootClientId( state, clientId ) - ) - ? 'default' - : 'disabled'; + if ( + ! isBlockSelected( + state, + getBlockRootClientId( state, clientId ) + ) + ) { + return 'disabled'; + } } }