fix: stop click propagation on pending device checkbox to prevent modal opening
This commit is contained in:
@@ -395,6 +395,7 @@ function PendingDevicesPanel({ onNodeApproved, highlightId }: { onNodeApproved:
|
|||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={checkedIds.has(d.id)}
|
checked={checkedIds.has(d.id)}
|
||||||
|
onClick={(e) => e.stopPropagation()}
|
||||||
onChange={(e) => { e.stopPropagation(); toggleCheck(d.id, e as unknown as React.MouseEvent) }}
|
onChange={(e) => { e.stopPropagation(); toggleCheck(d.id, e as unknown as React.MouseEvent) }}
|
||||||
className="w-3 h-3 accent-[#00d4ff] cursor-pointer shrink-0"
|
className="w-3 h-3 accent-[#00d4ff] cursor-pointer shrink-0"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user