Skip to content

Commit

Permalink
Fix section root case
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Dec 11, 2024
1 parent 8209692 commit 683c073
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2976,7 +2976,8 @@ export function __unstableHasActiveBlockOverlayActive( state, clientId ) {
);
const shouldEnableIfUnselected = blockSupportDisable
? false
: areInnerBlocksControlled( state, clientId );
: areInnerBlocksControlled( state, clientId ) &&
clientId !== getSectionRootClientId( state, clientId );

return (
shouldEnableIfUnselected &&
Expand Down

0 comments on commit 683c073

Please sign in to comment.