Skip to content

Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring

fix: stop click propagation on pending device checkbox to prevent modal opening

Pouzor88554ef95279
diff --git a/frontend/src/components/panels/Sidebar.tsx b/frontend/src/components/panels/Sidebar.tsx
index c7b5d73..af75140 100644
--- a/frontend/src/components/panels/Sidebar.tsx
+++ b/frontend/src/components/panels/Sidebar.tsx
@@ -395,6 +395,7 @@ function PendingDevicesPanel({ onNodeApproved, highlightId }: { onNodeApproved:
<input
type="checkbox"
checked={checkedIds.has(d.id)}
+ onClick={(e) => e.stopPropagation()}
onChange={(e) => { e.stopPropagation(); toggleCheck(d.id, e as unknown as React.MouseEvent) }}
className="w-3 h-3 accent-[#00d4ff] cursor-pointer shrink-0"
/>