Skip to content

Commit

Permalink
Fixed #71 - Calendar.vue: "close on blur" not working properly
Browse files Browse the repository at this point in the history
mertsincan committed Oct 22, 2019
1 parent e782515 commit 2f23827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/calendar/Calendar.vue
Original file line number Diff line number Diff line change
@@ -601,12 +601,12 @@ export default {
this.overlayVisible = false;
}
};
document.addEventListener('click', this.outsideClickListener);
document.addEventListener('mousedown', this.outsideClickListener);
}
},
unbindOutsideClickListener() {
if (this.outsideClickListener) {
document.removeEventListener('click', this.outsideClickListener);
document.removeEventListener('mousedown', this.outsideClickListener);
this.outsideClickListener = null;
}
},

0 comments on commit 2f23827

Please sign in to comment.