diff --git a/packages/editor/src/components/block-navigation/dropdown.js b/packages/editor/src/components/block-navigation/dropdown.js index c6b8e976db5cc..bfcb5f3f0e2d3 100644 --- a/packages/editor/src/components/block-navigation/dropdown.js +++ b/packages/editor/src/components/block-navigation/dropdown.js @@ -18,17 +18,18 @@ const MenuIcon = ( ); -function BlockNavigationDropdown( { hasBlocks } ) { +function BlockNavigationDropdown( { hasBlocks, isTextModeEnabled } ) { return ( ( - + } ) } @@ -50,5 +51,6 @@ function BlockNavigationDropdown( { hasBlocks } ) { export default withSelect( ( select ) => { return { hasBlocks: !! select( 'core/editor' ).getBlockCount(), + isTextModeEnabled: select( 'core/edit-post' ).getEditorMode() === 'text', }; } )( BlockNavigationDropdown );