Skip to content

Commit 72c9167

Browse files
committed
frontend/GroupingModal: Fix checkbox toggle behavior
1 parent 9c461f5 commit 72c9167

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

frontend/src/components/device/GroupingModal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,16 @@ export function GroupingModal({
304304
active={selectedDevices.has(device.id)}
305305
onClick={(e: Event) => {
306306
e.preventDefault();
307-
handleDeviceToggle(device.id)
308307
}}
309308
style={{ cursor: "pointer" }}
310309
>
311310
<Form.Check
312311
type="checkbox"
313312
checked={selectedDevices.has(device.id)}
313+
onClick={(e) => {
314+
e.stopPropagation();
315+
handleDeviceToggle(device.id);
316+
}}
314317
label={
315318
<div>
316319
<strong>{device.name}</strong>

0 commit comments

Comments
 (0)