From e55f116020861d64ea4f2cbffc5ad62771266ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Fri, 3 Apr 2026 10:34:42 +0100 Subject: [PATCH] Stop click propagation on no-go area button Click was bubbling through to the map, creating a waypoint when toggling the no-go drawing mode. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/planner/app/components/PlannerMap.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/planner/app/components/PlannerMap.tsx b/apps/planner/app/components/PlannerMap.tsx index d8d3499..ea2449f 100644 --- a/apps/planner/app/components/PlannerMap.tsx +++ b/apps/planner/app/components/PlannerMap.tsx @@ -177,7 +177,7 @@ function NoGoAreaButton({ active, onClick }: { active: boolean; onClick: () => v href="#" role="button" title={active ? "Cancel no-go area" : "Draw no-go area"} - onClick={(e) => { e.preventDefault(); onClick(); }} + onClick={(e) => { e.preventDefault(); e.stopPropagation(); onClick(); }} style={{ display: "flex", alignItems: "center",