Skip to content

Commit

Permalink
Don't show indicator when focus
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jan 23, 2023
1 parent 31aad1a commit 171b896
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,13 @@ function BlockPattern( {
onClick( pattern, blocks );
onHover( null );
} }
onFocus={ () => {
if ( isDragging ) {
return;
}
onHover( pattern );
} }
onMouseEnter={ () => {
if ( isDragging ) {
return;
}
onHover( pattern );
} }
onMouseLeave={ () => onHover( null ) }
onBlur={ () => onHover( null ) }
aria-label={ pattern.title }
aria-describedby={
pattern.description ? descriptionId : undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,13 @@ function InserterListItem( {
onHover( null );
}
} }
onFocus={ () => {
if ( isDragging.current ) {
return;
}
onHover( item );
} }
onMouseEnter={ () => {
if ( isDragging.current ) {
return;
}
onHover( item );
} }
onMouseLeave={ () => onHover( null ) }
onBlur={ () => onHover( null ) }
{ ...props }
>
<span
Expand Down

0 comments on commit 171b896

Please sign in to comment.