|
@@ -40,7 +40,7 @@ export default {
|
|
|
const parent = document.getElementById(this.id)
|
|
|
this.listener = document.addEventListener('click', (event) => {
|
|
|
const isInner = parent.contains(event.target)
|
|
|
- if (!isInner) {
|
|
|
+ if (!isInner && this.visible) {
|
|
|
this.visible = false
|
|
|
this.$emit('update:active', this.visible)
|
|
|
this.$emit('overMouse')
|