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:
parent
3abea9d5a8
commit
e55f116020
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue