Skip to content

Commit

Permalink
Avoid focusing the block selection button on each render (#24195)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jul 27, 2020
1 parent dcfb930 commit 126b890
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function BlockSelectionButton( { clientId, rootClientId, ...props } ) {
// Focus the breadcrumb in navigation mode.
useEffect( () => {
ref.current.focus();
} );
}, [] );

function onKeyDown( event ) {
const { keyCode } = event;
Expand Down

0 comments on commit 126b890

Please sign in to comment.