forked from vikunja/frontend
fix: close when clicked outside
This commit is contained in:
parent
e29a19f218
commit
fa25fbccd0
|
@ -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,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user