diff --git a/packages/block-editor/src/components/default-block-appender/index.js b/packages/block-editor/src/components/default-block-appender/index.js index 7795590320671..9baddab1023a8 100644 --- a/packages/block-editor/src/components/default-block-appender/index.js +++ b/packages/block-editor/src/components/default-block-appender/index.js @@ -46,13 +46,6 @@ export function DefaultBlockAppender( { >

{ - function onMouseDown( event ) { - // Only handle clicks on the canvas, not the content. - if ( event.target !== node ) { - return; - } - - const focusableNodes = focus.focusable.find( node ); - const target = findLast( focusableNodes, isTabbableTextField ); - - if ( ! target ) { - return; - } - - const { bottom } = target.getBoundingClientRect(); - - // Ensure the click is below the last block. - if ( event.clientY < bottom ) { - return; - } - - placeCaretAtHorizontalEdge( target, true ); - event.preventDefault(); - } - - node.addEventListener( 'mousedown', onMouseDown ); - - return () => { - node.addEventListener( 'mousedown', onMouseDown ); - }; - }, [] ); -} diff --git a/packages/edit-post/src/components/visual-editor/index.js b/packages/edit-post/src/components/visual-editor/index.js index 777443c5f6fae..df88856372652 100644 --- a/packages/edit-post/src/components/visual-editor/index.js +++ b/packages/edit-post/src/components/visual-editor/index.js @@ -22,7 +22,6 @@ import { __unstableUseTypingObserver as useTypingObserver, __unstableBlockSettingsMenuFirstItem, __experimentalUseResizeCanvas as useResizeCanvas, - __unstableUseCanvasClickRedirect as useCanvasClickRedirect, __unstableEditorStyles as EditorStyles, useSetting, __experimentalLayoutStyle as LayoutStyle, @@ -153,7 +152,6 @@ export default function VisualEditor( { styles } ) { const contentRef = useMergeRefs( [ ref, useClipboardHandler(), - useCanvasClickRedirect(), useTypewriter(), useTypingObserver(), useBlockSelectionClearer(),