Commit 7986126a authored by rodrigore's avatar rodrigore Committed by 杨奕

DatePicker: Fix year picker

parent 601bd646
......@@ -310,7 +310,7 @@
this.date.setFullYear(year);
if (this.selectionMode === 'year') {
this.$emit('pick', new Date(year));
this.$emit('pick', new Date(year, 0, 1));
} else {
this.currentView = 'month';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment