From b7125c05187a82ad93f897c8b028295ecf26bd0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ella=20van=C2=A0Durpe?= Date: Wed, 25 Mar 2020 18:33:14 +0100 Subject: [PATCH] InnerBlocks: fix sibling inserter (#21143) --- .../src/components/block-list/insertion-point.js | 7 +++++-- .../src/components/block-list/root-container.js | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/block-editor/src/components/block-list/insertion-point.js b/packages/block-editor/src/components/block-list/insertion-point.js index 7aa46530ad3878..842b1e40b73cbe 100644 --- a/packages/block-editor/src/components/block-list/insertion-point.js +++ b/packages/block-editor/src/components/block-list/insertion-point.js @@ -49,7 +49,6 @@ function Indicator( { clientId } ) { } export default function InsertionPoint( { - className, isMultiSelecting, hasMultiSelection, selectedBlockClientId, @@ -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 ); } diff --git a/packages/block-editor/src/components/block-list/root-container.js b/packages/block-editor/src/components/block-list/root-container.js index 57bc4ff137459c..1ca09351851667 100644 --- a/packages/block-editor/src/components/block-list/root-container.js +++ b/packages/block-editor/src/components/block-list/root-container.js @@ -76,7 +76,6 @@ function RootContainer( { children, className, hasPopover = true }, ref ) { return (