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>
This commit is contained in:
Ullrich Schäfer 2026-04-03 10:34:42 +01:00
parent 3abea9d5a8
commit e55f116020
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

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