diff --git a/editor/inserter/index.js b/editor/inserter/index.js index 572377f764679a..6bc3df1d8696fc 100644 --- a/editor/inserter/index.js +++ b/editor/inserter/index.js @@ -8,7 +8,7 @@ import { connect } from 'react-redux'; */ import { __ } from '@wordpress/i18n'; import { Component } from '@wordpress/element'; -import { IconButton } from '@wordpress/components'; +import { Popover, IconButton } from '@wordpress/components'; import { createBlock } from '@wordpress/blocks'; /** @@ -86,13 +86,13 @@ class Inserter extends Component { > { children } - { opened && ( - - ) } + + + ); } diff --git a/editor/inserter/menu.js b/editor/inserter/menu.js index 0c3ebf08c90e40..525ac4ae3320c5 100644 --- a/editor/inserter/menu.js +++ b/editor/inserter/menu.js @@ -9,7 +9,7 @@ import { connect } from 'react-redux'; */ import { __, _n, sprintf } from '@wordpress/i18n'; import { Component } from '@wordpress/element'; -import { Popover, withFocusReturn, withInstanceId, withSpokenMessages } from '@wordpress/components'; +import { withFocusReturn, withInstanceId, withSpokenMessages } from '@wordpress/components'; import { keycodes } from '@wordpress/utils'; import { getCategories, getBlockTypes, BlockIcon } from '@wordpress/blocks'; @@ -314,17 +314,13 @@ export class InserterMenu extends Component { } render() { - const { position, onClose, instanceId } = this.props; + const { instanceId } = this.props; const isSearching = this.state.filterValue; const visibleBlocksByCategory = this.getVisibleBlocksByCategory( this.getBlocksForCurrentTab() ); /* eslint-disable jsx-a11y/no-autofocus */ return ( - +
@@ -435,7 +431,7 @@ export class InserterMenu extends Component {
} -
+ ); /* eslint-enable jsx-a11y/no-autofocus */ }