Skip to content

Commit

Permalink
Fixed month selection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleeckx committed Jul 26, 2016
1 parent 173b7bc commit f63ac5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebComponents/DatePicker/date-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
this._setCurrentDate(this.currentDate.add(cell.monthOffset, "months").clone());
}
else if (this.zoom === "months") {
this._setCurrentDate(this.currentDate.month(cell.date.month()).clone());
this._setCurrentDate(this.currentDate.month(cell.date.month() - 1).clone());

if (!this.monthMode)
this.zoom = "days";
Expand Down

0 comments on commit f63ac5e

Please sign in to comment.