Skip to content

Commit 9529121

Browse files
committed
fix: handleSelection on space as well
1 parent 5f88c58 commit 9529121

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Shared/Components/Plugin/PluginCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const PluginCard = ({
1717
pluginDataStore.pluginVersionStore[latestPluginId]
1818

1919
const handleSelection = (e: React.MouseEvent | React.KeyboardEvent) => {
20-
if ('key' in e && e.key !== 'Enter') {
20+
if ('key' in e && e.key !== 'Enter' && e.key !== ' ') {
2121
return
2222
}
2323

@@ -78,7 +78,7 @@ const PluginCard = ({
7878
)}
7979
</div>
8080

81-
<span className="dc__truncate cn-7 fs-12 fw-4 lh-16">By {updatedBy || 'Devtron'}</span>
81+
<span className="dc__truncate cn-7 fs-12 fw-4 lh-16">By {updatedBy}</span>
8282
</div>
8383

8484
{/* Plugin description */}

0 commit comments

Comments
 (0)