fix: close when clicked outside

This commit is contained in:
kolaente 2021-11-02 22:36:58 +01:00
parent e29a19f218
commit fa25fbccd0
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -25,7 +25,7 @@ export default {
// we actually want to use popup.$el, not its value. // we actually want to use popup.$el, not its value.
// eslint-disable-next-line vue/no-ref-as-operand // eslint-disable-next-line vue/no-ref-as-operand
closeWhenClickedOutside(e, popup.$el, () => { closeWhenClickedOutside(e, popup.value, () => {
open.value = false open.value = false
}) })
} }
@ -41,6 +41,7 @@ export default {
return { return {
open, open,
toggle, toggle,
popup,
} }
}, },
} }