Skip to content

Commit c2a9509

Browse files
authored
Merge pull request #1789 from wix/fix/ExpandableCalendar_height_updates
ExpandableCalendar - fix calendar height not updated after day press
2 parents 74bc7fe + 41beb33 commit c2a9509

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/expandableCalendar/index.tsx

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

441441
// for horizontal scroll
442-
const {date, updateSource} = this.props.context;
443-
444-
if (this.visibleMonth !== this.getMonth(date) && updateSource !== updateSources.DAY_PRESS) {
442+
const {date} = this.props.context;
443+
if (this.visibleMonth !== this.getMonth(date)) {
445444
const next = this.isLaterDate(first(value), date);
446445
this.scrollPage(next);
447446
}

0 commit comments

Comments
 (0)