diff --git a/packages/block-editor/src/components/writing-flow/index.js b/packages/block-editor/src/components/writing-flow/index.js index 54e1a7ee77fe0..37e45dd2680d0 100644 --- a/packages/block-editor/src/components/writing-flow/index.js +++ b/packages/block-editor/src/components/writing-flow/index.js @@ -377,6 +377,7 @@ class WritingFlow extends Component { * Sets focus to the end of the last tabbable text field, if one exists. */ focusLastTextField() { + this.disableNavigationMode(); const focusableNodes = focus.focusable.find( this.container ); const target = findLast( focusableNodes, isTabbableTextField ); if ( target ) { diff --git a/packages/e2e-tests/specs/adding-blocks.test.js b/packages/e2e-tests/specs/adding-blocks.test.js index ed44aa7817e2a..56e5976513746 100644 --- a/packages/e2e-tests/specs/adding-blocks.test.js +++ b/packages/e2e-tests/specs/adding-blocks.test.js @@ -29,6 +29,9 @@ describe( 'adding blocks', () => { } it( 'Should insert content using the placeholder and the regular inserter', async () => { + // This ensures the editor is loaded in navigation mode. + await page.reload(); + // Click below editor to focus last field (block appender) await clickBelow( await page.$( '.block-editor-default-block-appender' ) ); expect( await page.$( '[data-type="core/paragraph"]' ) ).not.toBeNull();