Skip to content

Commit

Permalink
fix wrong data event Select amp-date-picker range (ampproject#22408)
Browse files Browse the repository at this point in the history
* fix wrong data event Select amp-date-picker range

* refactor
  • Loading branch information
hoavo authored and cvializ committed May 21, 2019
1 parent 595ba49 commit 76e9140
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extensions/amp-date-picker/0.1/amp-date-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,7 @@ export class AmpDatePicker extends AMP.BaseElement {
}

const days = normalizedEndDate.diff(startDate, 'days');
cb(startDate);
for (let i = 0; i < days; i++) {
cb(startDate.clone().add(i + 1, 'days'));
}
Expand Down

0 comments on commit 76e9140

Please sign in to comment.