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:
Mitchell McCaffrey
2020-08-06 13:31:46 +10:00
parent 4347b5759d
commit 93a09db707
3 changed files with 18 additions and 3 deletions

View File

@@ -109,7 +109,8 @@ function MapTile({
}}
m={2}
bg="muted"
onClick={() => {
onClick={(e) => {
e.stopPropagation();
setIsTileMenuOpen(false);
if (!isSelected) {
onMapSelect(map);