From d33b72f3abec1d1cdbfad0ce56f28b7e82e7e3d7 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Wed, 11 Jan 2023 12:22:31 +0000 Subject: [PATCH] Revert "removed the edit button cell when it's not editable (#46439)" This reverts commit 78deee07cef231fd0ea3ce08ff464b6fd08b438e. --- .../src/components/off-canvas-editor/block.js | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/packages/block-editor/src/components/off-canvas-editor/block.js b/packages/block-editor/src/components/off-canvas-editor/block.js index 0d70a75376ca98..e79dc59133040a 100644 --- a/packages/block-editor/src/components/off-canvas-editor/block.js +++ b/packages/block-editor/src/components/off-canvas-editor/block.js @@ -331,28 +331,27 @@ function ListViewBlock( { { showBlockActions && ( <> - { isEditable && ( - - { ( props ) => ( + + { ( props ) => + isEditable && ( - ) } - - ) } + ) + } + { ( { ref, tabIndex, onFocus } ) => ( <>