Skip to content

Commit

Permalink
fix(single-datepicker): on select a single datepicker, the selected v…
Browse files Browse the repository at this point in the history
…alue is not updated
  • Loading branch information
fetrarij committed Jul 23, 2018
1 parent 5e77899 commit af83886
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/daterangepicker/daterangepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ export class DaterangepickerComponent implements OnInit {
}

clickApply(e?) {
console.log('this.chosenLabel', this.chosenLabel)
if (this.chosenLabel) {
this.choosedDate.emit({chosenLabel: this.chosenLabel, startDate: this.startDate, endDate: this.endDate});
}
Expand Down Expand Up @@ -640,6 +641,7 @@ export class DaterangepickerComponent implements OnInit {

if (this.singleDatePicker) {
this.setEndDate(this.startDate);
this.updateElement();
if (this.autoApply) {
this.clickApply();
}
Expand Down

0 comments on commit af83886

Please sign in to comment.