Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Ullrich Schäfer
e55f116020
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) <noreply@anthropic.com>
2026-04-03 10:34:42 +01:00

View file

@ -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",