Skip to content

Commit

Permalink
Fix: Heading toolbar not displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tug committed Sep 27, 2019
1 parent c0312ff commit 74ee26f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/heading/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const HeadingEdit = ( {
maxLevel={ 7 }
selectedLevel={ attributes.level }
onChange={ ( newLevel ) => setAttributes( { level: newLevel } ) }
isCollapsed={ false }
/>
</BlockControls>
<RichText
Expand Down

0 comments on commit 74ee26f

Please sign in to comment.