diff --git a/src/components/map/MapTile.js b/src/components/map/MapTile.js index 6e76a37..c8675d4 100644 --- a/src/components/map/MapTile.js +++ b/src/components/map/MapTile.js @@ -109,7 +109,8 @@ function MapTile({ }} m={2} bg="muted" - onClick={() => { + onClick={(e) => { + e.stopPropagation(); setIsTileMenuOpen(false); if (!isSelected) { onMapSelect(map); diff --git a/src/components/map/MapTiles.js b/src/components/map/MapTiles.js index 88d7961..96060c9 100644 --- a/src/components/map/MapTiles.js +++ b/src/components/map/MapTiles.js @@ -31,6 +31,7 @@ function MapTiles({ width: "500px", borderRadius: "4px", }} + onClick={() => onMapSelect(null)} > + handleImagesUpload(event.target.files)}