Skip to content

Commit

Permalink
Fix reduced UI behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jan 18, 2021
1 parent a1c9562 commit f786a20
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ function InsertionPointPopover( {
return {
previousElement: getBlockDOMNode( previous, ownerDocument ),
nextElement: getBlockDOMNode( next, ownerDocument ),
isHidden: hasMultiSelection()
? ! hasReducedUI &&
multiSelectedBlockClientIds.includes( clientId )
: ! hasReducedUI &&
blockOrientation === 'vertical' &&
clientId === selectedBlockClientId,
isHidden:
hasReducedUI ||
( hasMultiSelection()
? multiSelectedBlockClientIds.includes( clientId )
: blockOrientation === 'vertical' &&
clientId === selectedBlockClientId ),
orientation: blockOrientation,
};
},
Expand Down

0 comments on commit f786a20

Please sign in to comment.