From 74ee26ffc9e95e692ac6706c1ec65d2fb1d59810 Mon Sep 17 00:00:00 2001 From: Tugdual de Kerviler Date: Fri, 27 Sep 2019 14:14:52 +0200 Subject: [PATCH] Fix: Heading toolbar not displayed --- .../src/components/block-toolbar/index.native.js | 5 +++-- packages/block-library/src/heading/edit.native.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/block-toolbar/index.native.js b/packages/block-editor/src/components/block-toolbar/index.native.js index 5413e4e1f9cde..38908cf68335a 100644 --- a/packages/block-editor/src/components/block-toolbar/index.native.js +++ b/packages/block-editor/src/components/block-toolbar/index.native.js @@ -4,9 +4,10 @@ import { withSelect } from '@wordpress/data'; /** - * WordPress dependencies + * Internal dependencies */ -import { BlockFormatControls, BlockControls } from '@wordpress/block-editor'; +import BlockControls from '../block-controls'; +import BlockFormatControls from '../block-format-controls'; export const BlockToolbar = ( { blockClientIds, isValid, mode } ) => { if ( blockClientIds.length === 0 ) { diff --git a/packages/block-library/src/heading/edit.native.js b/packages/block-library/src/heading/edit.native.js index 356494ea933b3..ac8a0e755278c 100644 --- a/packages/block-library/src/heading/edit.native.js +++ b/packages/block-library/src/heading/edit.native.js @@ -31,6 +31,7 @@ const HeadingEdit = ( { maxLevel={ 7 } selectedLevel={ attributes.level } onChange={ ( newLevel ) => setAttributes( { level: newLevel } ) } + isCollapsed={ false } />