diff --git a/packages/block-editor/src/hooks/block-rename-ui.js b/packages/block-editor/src/hooks/block-rename-ui.js index 6a98dcf2e2fad..aec11a9b2c657 100644 --- a/packages/block-editor/src/hooks/block-rename-ui.js +++ b/packages/block-editor/src/hooks/block-rename-ui.js @@ -189,13 +189,13 @@ function BlockRenameControl( props ) { export const withBlockRenameControl = createHigherOrderComponent( ( BlockEdit ) => ( props ) => { - const { clientId, name, attributes, setAttributes } = props; + const { clientId, name, attributes, setAttributes, isSelected } = props; const supportsBlockNaming = hasBlockSupport( name, 'renaming', true ); return ( <> - { supportsBlockNaming && ( + { isSelected && supportsBlockNaming && ( <>