Skip to content

Commit 7360266

Browse files
committed
Fixed yearPicker bug
1 parent 12fb784 commit 7360266

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"name": "vue-functional-calendar",
88
"description": "Lightweight, high-performance calendar component based on Vue.js",
9-
"version": "2.6.4",
9+
"version": "2.6.5",
1010
"license": "MIT",
1111
"repository": {
1212
"type": "git",

src/components/FunctionalCalendar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@
797797
pickYear(year) {
798798
this.showYearPicker = false;
799799
let date = this.calendar.currentDate;
800-
this.calendar.currentDate = new Date(year, date.getMonth(), 0);
800+
this.calendar.currentDate = new Date(year, date.getMonth() + 1, 0);
801801
this.initCalendar();
802802
},
803803
getClassNames(day) {

0 commit comments

Comments
 (0)