Skip to content

Commit

Permalink
Fix ability to click through to Template Parts in Library (WordPress#…
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored and sethrubenstein committed Jul 13, 2023
1 parent 3024daa commit 53305e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down

0 comments on commit 53305e2

Please sign in to comment.