Skip to content

Commit

Permalink
fix: calendar reset value
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonwong666 committed Sep 6, 2023
1 parent 8ce21a6 commit 9d774c5
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 9d774c5

Please sign in to comment.