diff --git a/package.json b/package.json index 1d6a04d..26dd377 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ }, "name": "vue-functional-calendar", "description": "Lightweight, high-performance calendar component based on Vue.js", - "version": "2.6.4", + "version": "2.6.5", "license": "MIT", "repository": { "type": "git", diff --git a/src/components/FunctionalCalendar.vue b/src/components/FunctionalCalendar.vue index 807ac2b..02981ec 100644 --- a/src/components/FunctionalCalendar.vue +++ b/src/components/FunctionalCalendar.vue @@ -797,7 +797,7 @@ pickYear(year) { this.showYearPicker = false; let date = this.calendar.currentDate; - this.calendar.currentDate = new Date(year, date.getMonth(), 0); + this.calendar.currentDate = new Date(year, date.getMonth() + 1, 0); this.initCalendar(); }, getClassNames(day) {