From f12b9bfb3731807de94f3fe6bee3e5b1370131c9 Mon Sep 17 00:00:00 2001 From: u5surf Date: Mon, 23 Jul 2018 17:11:34 +0900 Subject: [PATCH] fix start date of the new year in non-copact-mode --- src/js/rangedate-picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/rangedate-picker.js b/src/js/rangedate-picker.js index 0c9c428..7f4050a 100644 --- a/src/js/rangedate-picker.js +++ b/src/js/rangedate-picker.js @@ -212,7 +212,7 @@ export default { return new Date(this.activeYearStart, this.activeMonthStart, 1).getDay() }, startNextMonthDay: function () { - return new Date(this.activeYearStart, this.startNextActiveMonth, 1).getDay() + return this.startNextActiveMonth === 0 ? new Date(this.activeYearStart, 12, 1).getDay() : new Date(this.activeYearStart, this.startNextActiveMonth, 1).getDay() }, endMonthDate: function () { return new Date(this.activeYearEnd, this.startNextActiveMonth, 0).getDate()