Skip to content

Commit

Permalink
Fix problem on the widgets screen where the block toolbar does not ap…
Browse files Browse the repository at this point in the history
…pear and movers can not be used.
  • Loading branch information
jorgefilipecosta committed Jun 17, 2019
1 parent ef95cb9 commit f13f817
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/edit-widgets/src/components/widget-area/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { Panel, PanelBody } from '@wordpress/components';
import {
BlockEditorProvider,
BlockList,
ObserveTyping,
WritingFlow,
} from '@wordpress/block-editor';
import { useState } from '@wordpress/element';

Expand All @@ -22,7 +24,11 @@ function WidgetArea( { title, initialOpen } ) {
onInput={ updateBlocks }
onChange={ updateBlocks }
>
<BlockList />
<WritingFlow>
<ObserveTyping>
<BlockList />
</ObserveTyping>
</WritingFlow>
</BlockEditorProvider>
</PanelBody>
</Panel>
Expand Down

0 comments on commit f13f817

Please sign in to comment.