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 Oct 1, 2024
1 parent 249f701 commit e746a6c
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 e746a6c

Please sign in to comment.