We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pageDate
year
1 parent 7596aac commit 57520b4Copy full SHA for 57520b4
src/components/Datepicker.vue
@@ -678,9 +678,15 @@ export default {
678
dateTemp = new Date()
679
}
680
681
- dateTemp = this.utils.resetDateTime(new Date(dateTemp))
682
683
- this.pageTimestamp = this.utils.setDate(new Date(dateTemp), 1)
+ let pageTimestamp = this.utils.resetDateTime(new Date(dateTemp))
+ pageTimestamp = this.utils.setDate(new Date(pageTimestamp), 1)
684
+
685
+ if (this.view === 'year') {
686
+ pageTimestamp = this.utils.setMonth(new Date(pageTimestamp), 0)
687
+ }
688
689
+ this.pageTimestamp = pageTimestamp
690
},
691
/**
692
* Sets the slide duration in milliseconds by looking up the stylesheet
0 commit comments