From 2f23827e25183d989a1fc70b70f6ebe8a8a10f06 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 22 Oct 2019 15:02:38 +0300 Subject: [PATCH] Fixed #71 - Calendar.vue: "close on blur" not working properly --- src/components/calendar/Calendar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/calendar/Calendar.vue b/src/components/calendar/Calendar.vue index c1feb7425..d142b990a 100644 --- a/src/components/calendar/Calendar.vue +++ b/src/components/calendar/Calendar.vue @@ -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; } },