Skip to content

Commit

Permalink
Fix focus loss when deleting selected block in zoom out mode (WordPre…
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj authored and huubl committed Oct 2, 2024
1 parent 5ef57bf commit 467623a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export default function ZoomOutToolbar( { clientId, __unstableContentRef } ) {
label={ __( 'Delete' ) }
onClick={ () => {
removeBlock( clientId );
__unstableContentRef.current?.focus();
} }
/>
) }
Expand Down

0 comments on commit 467623a

Please sign in to comment.