From 10b32b9a20e891e8cdf5f88c842a408832d07da0 Mon Sep 17 00:00:00 2001 From: olaf Date: Mon, 30 Jun 2025 19:13:44 +0000 Subject: [PATCH] Deselecting Clients in Kanban View --- dashboard/src/infoscreen_groups.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dashboard/src/infoscreen_groups.tsx b/dashboard/src/infoscreen_groups.tsx index 1f3d5f0..fd8914d 100644 --- a/dashboard/src/infoscreen_groups.tsx +++ b/dashboard/src/infoscreen_groups.tsx @@ -27,6 +27,10 @@ interface KanbanDragEventArgs { [key: string]: unknown; } +interface KanbanComponentWithClear extends KanbanComponentType { + clearSelection: () => void; +} + const de = { title: 'Gruppen', newGroup: 'Neue Raumgruppe', @@ -275,6 +279,13 @@ const Infoscreen_groups: React.FC = () => { Summary: c.location || `Client ${i + 1}`, })) ); + // Nach dem Laden: Karten deselektieren + setTimeout(() => { + (kanbanRef.current as KanbanComponentWithClear)?.clearSelection(); + setTimeout(() => { + (kanbanRef.current as KanbanComponentWithClear)?.clearSelection(); + }, 100); + }, 50); }); }); } catch {