Skip to content

Commit

Permalink
InnerBlocks: fix sibling inserter (#21143)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix authored Mar 25, 2020
1 parent 70e9f8b commit b7125c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function Indicator( { clientId } ) {
}

export default function InsertionPoint( {
className,
isMultiSelecting,
hasMultiSelection,
selectedBlockClientId,
Expand All @@ -72,7 +71,11 @@ export default function InsertionPoint( {
} );

function onMouseMove( event ) {
if ( event.target.className !== className ) {
if (
! event.target.classList.contains(
'block-editor-block-list__layout'
)
) {
if ( isInserterShown ) {
setIsInserterShown( false );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function RootContainer( { children, className, hasPopover = true }, ref ) {

return (
<InsertionPoint
className={ className }
isMultiSelecting={ isMultiSelecting }
hasMultiSelection={ hasMultiSelection }
selectedBlockClientId={ selectedBlockClientId }
Expand Down

0 comments on commit b7125c0

Please sign in to comment.