Skip to content

Commit

Permalink
fix(quickstart tile): opening quickstarts on click event (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 authored Mar 7, 2024
1 parent 0babc9c commit f1a59fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/module/src/catalog/QuickStartTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ const QuickStartTile: React.FC<QuickStartTileProps> = ({
if (link) {
window.open(link.href);
} else {
setActiveQuickStart(name, tasks?.length);
setActiveQuickStart(id, tasks?.length);
}
onClick();
}
};

return (
<div ref={ref}>
<div ref={ref} onClick={handleClick}>
<CatalogTile
id={id + '-catalog-tile'}
style={{
Expand All @@ -99,7 +99,6 @@ const QuickStartTile: React.FC<QuickStartTileProps> = ({
action={action}
/>
}
onClick={handleClick}
onKeyDown={(event) => {
if (event.key === 'Enter' || event.key === ' ') {
setActiveQuickStart(id, tasks?.length);
Expand Down

0 comments on commit f1a59fb

Please sign in to comment.