Skip to content

Commit

Permalink
Fix ability to click through to Template Parts in Library (#51838)
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored Jun 23, 2023
1 parent 3b249d7 commit 2e041b6
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 2e041b6

Please sign in to comment.