From 1f89550d786822191ec8b7930712784144517608 Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Wed, 6 Nov 2024 20:14:44 +0200 Subject: [PATCH] remove behavior from design mode --- .../src/components/block-inspector/index.js | 16 ++++++++++++++++ packages/block-editor/src/store/selectors.js | 8 ++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/packages/block-editor/src/components/block-inspector/index.js b/packages/block-editor/src/components/block-inspector/index.js index dfc7fae4788319..e4eb91e1fc5a7d 100644 --- a/packages/block-editor/src/components/block-inspector/index.js +++ b/packages/block-editor/src/components/block-inspector/index.js @@ -262,6 +262,8 @@ const BlockInspectorSingleBlock = ( { ), }; } ); + const { __unstableGetEditorMode } = useSelect( blockEditorStore ); + const editorMode = __unstableGetEditorMode(); return (
@@ -311,6 +313,20 @@ const BlockInspectorSingleBlock = ( { { ! isSectionBlock && ( <> + { editorMode === 'navigation' && + isSelectedContentClientIdControlling && ( + + + + ) }