Skip to content

Commit

Permalink
Fix override issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed May 10, 2024
1 parent b64f17e commit 31411ae
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}
}

Expand Down

0 comments on commit 31411ae

Please sign in to comment.