Fixed #71 - Calendar.vue: "close on blur" not working properly

pull/104/head
mertsincan 2019-10-22 15:02:38 +03:00
parent e782515cb8
commit 2f23827e25
1 changed files with 2 additions and 2 deletions

View File

@ -601,12 +601,12 @@ export default {
this.overlayVisible = false; this.overlayVisible = false;
} }
}; };
document.addEventListener('click', this.outsideClickListener); document.addEventListener('mousedown', this.outsideClickListener);
} }
}, },
unbindOutsideClickListener() { unbindOutsideClickListener() {
if (this.outsideClickListener) { if (this.outsideClickListener) {
document.removeEventListener('click', this.outsideClickListener); document.removeEventListener('mousedown', this.outsideClickListener);
this.outsideClickListener = null; this.outsideClickListener = null;
} }
}, },