Skip to content

Commit

Permalink
fix(datepicker): fix selectionDone event [fixes #2260] (#2282)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSurmay authored and valorkin committed Jul 26, 2017
1 parent 91fc1cd commit 763b2b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/datepicker/datepicker-inner.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ export class DatePickerInnerComponent implements OnInit, OnChanges {
}

this.activeDate = new Date(date.getFullYear(), date.getMonth(), date.getDate());
if (isManual) {
this.selectionDone.emit(this.activeDate);
}
} else {
this.activeDate = new Date(date.getFullYear(), date.getMonth(), date.getDate());
if (isManual) {
Expand Down

0 comments on commit 763b2b7

Please sign in to comment.