From 3c5ed4cf24c56c9a39c6f1496f9662454ac6992c Mon Sep 17 00:00:00 2001 From: sumragen Date: Mon, 4 Sep 2017 17:30:51 +0300 Subject: [PATCH] #3826 edited predicate to fired onClose event:added predicate those check is overlay visible --- src/app/components/calendar/calendar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index d5ef9ceabf8..e1b477001f5 100644 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -1416,7 +1416,7 @@ export class Calendar implements AfterViewInit,AfterViewChecked,OnInit,OnDestroy bindDocumentClickListener() { if(!this.documentClickListener) { this.documentClickListener = this.renderer.listen('document', 'click', (event) => { - if(!this.datepickerClick) { + if(!this.datepickerClick&&this.overlayVisible) { this.overlayVisible = false; this.onClose.emit(event); }