Skip to content

Commit

Permalink
Prevent stealing focus from editor canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Oct 8, 2021
1 parent 1665384 commit 510af3e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/block-editor/src/components/list-view/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
: () => {};
Expand Down

0 comments on commit 510af3e

Please sign in to comment.