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
1 changed files with 2 additions and 1 deletions

View File

@ -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,
}
},
}