fix: close when clicked outside
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
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.
|
||||
// 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,
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user