Skip to content

Commit 463d2eb

Browse files
committed
fix: add prevent default on selection of plugin
1 parent ceb1f64 commit 463d2eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Shared/Components/Plugin/PluginCard.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const PluginCard = ({
3333
pluginDataStore.pluginVersionStore[latestPluginId]
3434

3535
const handleSelection = (e: React.MouseEvent | React.KeyboardEvent) => {
36+
// Added to ensure that the event is not bubbled to the div in case of click on the checkbox
37+
e.preventDefault()
3638
if ('key' in e && e.key !== 'Enter' && e.key !== ' ') {
3739
return
3840
}

0 commit comments

Comments
 (0)