diff --git a/packages/block-editor/src/components/writing-flow/use-select-all.js b/packages/block-editor/src/components/writing-flow/use-select-all.js index 8ddd9efaf19530..3a78c23cfb048a 100644 --- a/packages/block-editor/src/components/writing-flow/use-select-all.js +++ b/packages/block-editor/src/components/writing-flow/use-select-all.js @@ -31,21 +31,11 @@ export default function useSelectAll() { return; } - if ( - event.target.classList.contains( 'editor-post-title__input' ) - ) { + if ( ! isEntirelySelected( event.target ) ) { return; } const selectedClientIds = getSelectedBlockClientIds(); - - if ( - selectedClientIds.length === 1 && - ! isEntirelySelected( event.target ) - ) { - return; - } - const [ firstSelectedClientId ] = selectedClientIds; const rootClientId = getBlockRootClientId( firstSelectedClientId ); let blockClientIds = getBlockOrder( rootClientId );