Skip to content

Commit

Permalink
simplepicker: fix an issue where readable date is not updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
priyank-p committed Sep 6, 2018
1 parent aa14116 commit bdbe61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class SimplePicker {
this.selectedDate = date;

// replace 1 Sep... to 1st ...
this.readableDate = _date.replace(/^\d+/, $date.innerHTML);
this.readableDate = _date.replace(/^\d+/, date.getDate());
}

selectDate(el) {
Expand Down

0 comments on commit bdbe61c

Please sign in to comment.