Skip to content

Commit

Permalink
Fixed yearPicker bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ManukMinasyan committed Nov 1, 2019
1 parent 12fb784 commit 7360266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/components/FunctionalCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

1 comment on commit 7360266

@vercel
Copy link

@vercel vercel bot commented on 7360266 Nov 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.