Skip to content

Commit

Permalink
fix(calendar): fix calendar reset miss default Date (#5546)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonwong666 authored Sep 11, 2023
1 parent 7423e18 commit f330cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ VantComponent({

methods: {
reset() {
this.setData({ currentDate: this.getInitialDate() });
this.setData({ currentDate: this.getInitialDate(this.data.defaultDate) });
this.scrollIntoView();
},

Expand Down

0 comments on commit f330cf2

Please sign in to comment.