Skip to content

Commit a1a4ebe

Browse files
committed
ExpandableCalendar - fix calendar height not updated after day press
1 parent 74bc7fe commit a1a4ebe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expandableCalendar/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,9 @@ class ExpandableCalendar extends Component<ExpandableCalendarProps, State> {
439439
}
440440

441441
// for horizontal scroll
442-
const {date, updateSource} = this.props.context;
442+
const {date} = this.props.context;
443443

444-
if (this.visibleMonth !== this.getMonth(date) && updateSource !== updateSources.DAY_PRESS) {
444+
if (this.visibleMonth !== this.getMonth(date)) {
445445
const next = this.isLaterDate(first(value), date);
446446
this.scrollPage(next);
447447
}

0 commit comments

Comments
 (0)