From f63ac5e5622482add0305fd53f721123c8fa3b1f Mon Sep 17 00:00:00 2001 From: David Sleeckx Date: Tue, 26 Jul 2016 14:47:34 +0200 Subject: [PATCH] Fixed month selection bug --- src/WebComponents/DatePicker/date-picker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebComponents/DatePicker/date-picker.ts b/src/WebComponents/DatePicker/date-picker.ts index 69dafbcf..bef40c2d 100644 --- a/src/WebComponents/DatePicker/date-picker.ts +++ b/src/WebComponents/DatePicker/date-picker.ts @@ -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";