diff --git a/packages/block-editor/src/components/inserter/menu.js b/packages/block-editor/src/components/inserter/menu.js index f235274d3c40f..51026ec939dd5 100644 --- a/packages/block-editor/src/components/inserter/menu.js +++ b/packages/block-editor/src/components/inserter/menu.js @@ -113,6 +113,13 @@ function InserterMenu( [ onToggleInsertionPoint, setHoveredItem ] ); + const onHoverPattern = useCallback( + ( item ) => { + onToggleInsertionPoint( !! item ); + }, + [ onToggleInsertionPoint ] + ); + const onClickPatternCategory = useCallback( ( patternCategory ) => { setSelectedPatternCategory( patternCategory ); @@ -296,7 +303,7 @@ function InserterMenu(