Skip to content

Commit c0d5e63

Browse files
authored
fix(Calendar): calendar data is not updated after value is updated (#3800)
1 parent 6f667da commit c0d5e63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/calendar/calendar.ts

Lines changed: 3 additions & 3 deletions
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();
107+
this.updateCurrentMonth(v);
108108
},
109109

110110
visible(v) {
@@ -191,9 +191,9 @@ export default class Calendar extends SuperComponent {
191191
});
192192
},
193193

194-
updateCurrentMonth() {
194+
updateCurrentMonth(newValue?: any) {
195195
if (this.data.switchMode === 'none') return;
196-
this.calcCurrentMonth();
196+
this.calcCurrentMonth(newValue);
197197
},
198198

199199
calcCurrentMonth(newValue?: any) {

0 commit comments

Comments
 (0)