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/Settings.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

diff --git a/src/components/Settings.vue b/src/components/Settings.vue
index 2b8cd35..008632e 100644
--- a/src/components/Settings.vue
+++ b/src/components/Settings.vue
@@ -9,7 +9,8 @@ export default defineComponent({
 	},
 	methods: {
 		closeClicked(evt: Event){
-			if (evt.target == this.$el || evt.target == this.$refs.closeIcon){
+			console.log(evt.target)
+			if (evt.target == this.$el || (this.$refs.closeIcon as HTMLElement).contains(evt.target as HTMLElement)){
 				this.$emit('settings-close');
 			}
 		},
-- 
cgit v1.2.3

