From 510af3e9e5a952e28d465711c37b1240c963ffe4 Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Fri, 8 Oct 2021 16:30:35 +1100 Subject: [PATCH] Prevent stealing focus from editor canvas --- packages/block-editor/src/components/list-view/block.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/block-editor/src/components/list-view/block.js b/packages/block-editor/src/components/list-view/block.js index 917e3a0c6562e2..12649189316645 100644 --- a/packages/block-editor/src/components/list-view/block.js +++ b/packages/block-editor/src/components/list-view/block.js @@ -78,14 +78,6 @@ export default function ListViewBlock( { } }, [] ); - // If ListView has experimental features (such as drag and drop) enabled, - // leave the focus handling as it was before, to avoid accidental regressions. - useEffect( () => { - if ( withExperimentalFeatures && isSelected ) { - cellRef.current.focus(); - } - }, [ withExperimentalFeatures, isSelected ] ); - const highlightBlock = withExperimentalPersistentListViewFeatures ? toggleBlockHighlight : () => {};