From fa25fbccd0dfcb58b29280d664cabda038fce174 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 2 Nov 2021 22:36:58 +0100 Subject: [PATCH] fix: close when clicked outside --- src/components/misc/popup.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/misc/popup.vue b/src/components/misc/popup.vue index 287ebef01..d80a853e9 100644 --- a/src/components/misc/popup.vue +++ b/src/components/misc/popup.vue @@ -25,7 +25,7 @@ export default { // we actually want to use popup.$el, not its value. // eslint-disable-next-line vue/no-ref-as-operand - closeWhenClickedOutside(e, popup.$el, () => { + closeWhenClickedOutside(e, popup.value, () => { open.value = false }) } @@ -41,6 +41,7 @@ export default { return { open, toggle, + popup, } }, }