Skip to content

Commit

Permalink
Don't remove media panel if search term is present in pattern and blo…
Browse files Browse the repository at this point in the history
…ck tab search
  • Loading branch information
jeryj committed Apr 24, 2024
1 parent 07c7192 commit ef0c17e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/block-editor/src/components/inserter/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,7 @@ function InserterMenu(
const showPatternPanel =
selectedTab === 'patterns' && selectedPatternCategory;

const showMediaPanel =
selectedTab === 'media' &&
! delayedFilterValue &&
selectedMediaCategory;
const showMediaPanel = selectedTab === 'media' && selectedMediaCategory;

const showAsTabs = showPatterns || showMedia;

Expand Down

0 comments on commit ef0c17e

Please sign in to comment.