Skip to content

Commit

Permalink
Writing flow: select all: remove early return for post title (#33699)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored and desrosj committed Aug 30, 2021
1 parent 455de81 commit 891de6a
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 891de6a

Please sign in to comment.