Skip to content

Commit ce0642c

Browse files
authored
fix(Calendar): fixed blank panel issue when value is not between minDate and maxDate (#3457)
1 parent 407181c commit ce0642c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/calendar/calendar.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export default class Calendar extends SuperComponent {
200200
this.updateActionButton(date);
201201

202202
this.setData({
203-
currentMonth,
203+
currentMonth: currentMonth.length > 0 ? currentMonth : [this.data.months[0]],
204204
});
205205
},
206206

0 commit comments

Comments
 (0)