aboutsummaryrefslogtreecommitdiff
path: root/src/components/Settings.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-03-27 11:41:33 +1100
committerTerry Truong <terry06890@gmail.com>2022-03-27 11:56:31 +1100
commitfa1c370b13ca29996f6e5867a86f66f1a37844fb (patch)
tree1ae9ecd072bbcf32fe603731a41df8e78e8be0af /src/components/Settings.vue
parent083b96a5040ccc71d2c0fc13e374d19ad2454161 (diff)
Prevent overflow during tile collapse/expand
Diffstat (limited to 'src/components/Settings.vue')
-rw-r--r--src/components/Settings.vue3
1 files changed, 2 insertions, 1 deletions
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');
}
},