We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f667da commit c0d5e63Copy full SHA for c0d5e63
1 file changed
src/calendar/calendar.ts
@@ -104,7 +104,7 @@ export default class Calendar extends SuperComponent {
104
value(v) {
105
this.base.value = v;
106
this.calcMonths();
107
- this.updateCurrentMonth();
+ this.updateCurrentMonth(v);
108
},
109
110
visible(v) {
@@ -191,9 +191,9 @@ export default class Calendar extends SuperComponent {
191
});
192
193
194
- updateCurrentMonth() {
+ updateCurrentMonth(newValue?: any) {
195
if (this.data.switchMode === 'none') return;
196
- this.calcCurrentMonth();
+ this.calcCurrentMonth(newValue);
197
198
199
calcCurrentMonth(newValue?: any) {
0 commit comments