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 Oct 24, 2024
1 parent 76c259f commit 0c7161a
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 @@ -2970,7 +2970,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 0c7161a

Please sign in to comment.