Skip to content

Commit

Permalink
Restore check for default editing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Nov 19, 2024
1 parent ab68567 commit 7877837
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/block-editor/src/components/block-toolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,13 @@ export function PrivateBlockToolbar( {
disabled={ ! isDefaultEditingMode }
isUsingBindings={ isUsingBindings }
/>
{ ! isMultiToolbar && showLockButtons && (
<BlockLockToolbar
clientId={ blockClientId }
/>
) }
{ ! isMultiToolbar &&
showLockButtons &&
isDefaultEditingMode && (
<BlockLockToolbar
clientId={ blockClientId }
/>
) }
<BlockMover
clientIds={ blockClientIds }
hideDragHandle={ hideDragHandle }
Expand Down

0 comments on commit 7877837

Please sign in to comment.