From 9d87c52dbc19a822d0536c718e3f823009e55b34 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 23 Jun 2023 11:02:26 +0100 Subject: [PATCH] Restore ability to click through --- packages/edit-site/src/components/page-library/grid-item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/page-library/grid-item.js b/packages/edit-site/src/components/page-library/grid-item.js index f46d7861a40dc1..027e14ca9e9467 100644 --- a/packages/edit-site/src/components/page-library/grid-item.js +++ b/packages/edit-site/src/components/page-library/grid-item.js @@ -97,7 +97,7 @@ export default function GridItem( { categoryId, composite, icon, item } ) { role="option" as="div" { ...composite } - onClick={ isUserPattern ? onClick : undefined } + onClick={ item.type !== PATTERNS ? onClick : undefined } onKeyDown={ isUserPattern ? onKeyDown : undefined } aria-label={ item.title } aria-describedby={