Skip to content

Commit

Permalink
Merge pull request #3832 from Sumragen/3826-unexpected-onclose-event
Browse files Browse the repository at this point in the history
#3826 edited predicate to fired onClose event:added predicate those c…
  • Loading branch information
cagataycivici authored Sep 12, 2017
2 parents b0db3b9 + 3c5ed4c commit d64bdb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/calendar/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,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);
}
Expand Down

0 comments on commit d64bdb7

Please sign in to comment.