From fa1c370b13ca29996f6e5867a86f66f1a37844fb Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Sun, 27 Mar 2022 11:41:33 +1100
Subject: Prevent overflow during tile collapse/expand

---
 src/components/TileInfoModal.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/TileInfoModal.vue')

diff --git a/src/components/TileInfoModal.vue b/src/components/TileInfoModal.vue
index b1d8fe4..297484b 100644
--- a/src/components/TileInfoModal.vue
+++ b/src/components/TileInfoModal.vue
@@ -20,7 +20,7 @@ export default defineComponent({
 	},
 	methods: {
 		closeClicked(evt: Event){
-			if (evt.target == this.$el || this.$refs.closeIcon.contains(evt.target)){
+			if (evt.target == this.$el || (this.$refs.closeIcon as HTMLElement).contains(evt.target as HTMLElement)){
 				this.$emit('info-modal-close');
 			}
 		},
-- 
cgit v1.2.3

