fix: checkbox onChange anti-pattern in PendingDevicesPanel

This commit is contained in:
Pouzor
2026-04-21 11:28:55 +02:00
parent 8b8da5584c
commit 110592f89e
+1 -2
View File
@@ -395,8 +395,7 @@ function PendingDevicesPanel({ onNodeApproved, highlightId }: { onNodeApproved:
<input
type="checkbox"
checked={checkedIds.has(d.id)}
onClick={(e) => toggleCheck(d.id, e)}
onChange={() => {}}
onChange={(e) => { e.stopPropagation(); toggleCheck(d.id, e as unknown as React.MouseEvent) }}
className="w-3 h-3 accent-[#00d4ff] cursor-pointer shrink-0"
/>
<span className="text-foreground truncate font-medium">{title}</span>