Skip to content

Commit

Permalink
pass the onClose down
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed May 8, 2024
1 parent cff4921 commit 3425cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/components/inserter-sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import { useDispatch, useSelect } from '@wordpress/data';
import { __experimentalLibrary as Library } from '@wordpress/block-editor';
import { useViewportMatch } from '@wordpress/compose';
import { __ } from '@wordpress/i18n';
import { useCallback, useRef } from '@wordpress/element';
import { store as preferencesStore } from '@wordpress/preferences';
import { ESCAPE } from '@wordpress/keycodes';
Expand Down Expand Up @@ -68,6 +67,7 @@ export default function InserterSidebar( {
isRightSidebarOpen ? closeGeneralSidebar : undefined
}
ref={ libraryRef }
onClose={ closeInserterSidebar }
/>
</div>
</div>
Expand Down

0 comments on commit 3425cd7

Please sign in to comment.