Skip to content

Commit

Permalink
fix(ranges): Timepicker not updated when range clicked
Browse files Browse the repository at this point in the history
Close #1015
  • Loading branch information
fetrarij committed Feb 7, 2019
1 parent 3ec5798 commit 8957c67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/daterangepicker/daterangepicker.component.ts
Expand Up @@ -908,7 +908,7 @@ export class DaterangepickerComponent implements OnInit {
this.calculateChosenLabel();
}
this.showCalInRanges = (!this.rangesArray.length) || this.alwaysShowCalendars;

if (!this.timePicker) {
this.startDate.startOf('day');
this.endDate.endOf('day');
Expand All @@ -923,6 +923,10 @@ export class DaterangepickerComponent implements OnInit {
} else {
this.renderCalendar(SideEnum.left);
this.renderCalendar(SideEnum.right);
if (this.timePicker) {
this.renderTimePicker(SideEnum.left)
this.renderTimePicker(SideEnum.right)
}
}

}
Expand Down

0 comments on commit 8957c67

Please sign in to comment.