Skip to content

Commit

Permalink
Fix pattern previews in inserter (#53331)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 committed Aug 8, 2023
1 parent 7a19920 commit f338335
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/block-editor/src/components/inserter/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ function InserterMenu(
filterValue={ delayedFilterValue }
onSelect={ onSelect }
onHover={ onHover }
onHoverPattern={ onHoverPattern }
rootClientId={ rootClientId }
clientId={ clientId }
isAppender={ isAppender }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ function InserterSearchResults( {
filterValue,
onSelect,
onHover,
onHoverPattern,
rootClientId,
clientId,
isAppender,
Expand Down Expand Up @@ -189,7 +190,7 @@ function InserterSearchResults( {
shownPatterns={ currentShownPatterns }
blockPatterns={ filteredBlockPatterns }
onClickPattern={ onSelectBlockPattern }
onHover={ onHover }
onHover={ onHoverPattern }
isDraggable={ isDraggable }
/>
</div>
Expand Down

0 comments on commit f338335

Please sign in to comment.