Fixed #71 - Calendar.vue: "close on blur" not working properly
parent
e782515cb8
commit
2f23827e25
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue