Skip to content

Commit

Permalink
Render the Popover.Slot for the block toolbar to ensure navigation mo…
Browse files Browse the repository at this point in the history
…de works
  • Loading branch information
talldan committed Apr 6, 2020
1 parent 4d77d9c commit ee226a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
WritingFlow,
} from '@wordpress/block-editor';
import { __ } from '@wordpress/i18n';
import { Button, Panel, PanelBody } from '@wordpress/components';
import { Button, Panel, PanelBody, Popover } from '@wordpress/components';

export default function BlockEditorPanel( { menuId, saveBlocks } ) {
const { clearSelectedBlock } = useDispatch( 'core/block-editor' );
Expand Down Expand Up @@ -40,6 +40,7 @@ export default function BlockEditorPanel( { menuId, saveBlocks } ) {
>
<BlockToolbar hideDragHandle />
</NavigableToolbar>
<Popover.Slot name="block-toolbar" />
<WritingFlow>
<ObserveTyping>
<BlockList />
Expand Down

0 comments on commit ee226a0

Please sign in to comment.