Skip to content

Commit 20c8822

Browse files
authored
fix(Calendar): fixed initialization error when value[] is combined with switch-mode (#4005)
1 parent ddbbc49 commit 20c8822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/calendar/calendar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default class Calendar extends SuperComponent {
104104
value(v) {
105105
this.base.value = v;
106106
this.calcMonths();
107-
this.updateCurrentMonth(v);
107+
this.updateCurrentMonth(Array.isArray(v) ? v[0] : v);
108108
},
109109

110110
visible(v) {

0 commit comments

Comments
 (0)