Fix bug that caused closing the select map modal to select the map
Added ability to deselect a map by clicking outside of the map select tile
This commit is contained in:
@@ -109,7 +109,8 @@ function MapTile({
|
||||
}}
|
||||
m={2}
|
||||
bg="muted"
|
||||
onClick={() => {
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
setIsTileMenuOpen(false);
|
||||
if (!isSelected) {
|
||||
onMapSelect(map);
|
||||
|
||||
Reference in New Issue
Block a user