diff --git a/packages/block-editor/src/components/block-list/use-block-props/use-scroll-into-view.js b/packages/block-editor/src/components/block-list/use-block-props/use-scroll-into-view.js index 652ddcaa56efa..167222bbeee4c 100644 --- a/packages/block-editor/src/components/block-list/use-block-props/use-scroll-into-view.js +++ b/packages/block-editor/src/components/block-list/use-block-props/use-scroll-into-view.js @@ -63,6 +63,8 @@ export function useScrollIntoView( clientId ) { scrollingElement.scrollHeight > scrollingElement.clientHeight ) { scrollContainer = ownerDocument.defaultView; + } else { + return; } }