Skip to content

Commit

Permalink
Merge pull request flatpickr#1506 from chhaymenghong/flatpickr#1442
Browse files Browse the repository at this point in the history
reset this so that when user change the hour input after the first time, it is still updated correctly. ( for range calendar )
  • Loading branch information
chmln authored Oct 16, 2018
2 parents 3ad1764 + 03db825 commit 5bde31b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2095,6 +2095,7 @@ function FlatpickrInstance(
else self.selectedDates.push(selectedDate);
} else if (self.config.mode === "range") {
if (self.selectedDates.length === 2) self.clear(false);
self.latestSelectedDateObj = selectedDate;

self.selectedDates.push(selectedDate);

Expand Down

0 comments on commit 5bde31b

Please sign in to comment.