Skip to content

Commit

Permalink
Fix unexpected unlock control in block toolbar in non-default editing…
Browse files Browse the repository at this point in the history
… mode (#67121)

Co-authored-by: getdave <[email protected]>
Co-authored-by: t-hamano <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: fabiankaegy <[email protected]>
  • Loading branch information
6 people authored Dec 4, 2024
1 parent 2328ff7 commit a5d8444
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 a5d8444

Please sign in to comment.