Skip to content

Commit 77c616e

Browse files
authored
Merge pull request #1984 from wix/fix/timelineCalendar_arrow_press
Fix TimelineCalendars arrow press
2 parents ed80013 + 53f4350 commit 77c616e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expandableCalendar/WeekCalendar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class WeekCalendar extends Component<WeekCalendarProps, State> {
6464
const {shouldComponentUpdate, getDatesArray, scrollToIndex} = this.presenter;
6565

6666
if (shouldComponentUpdate(this.props.context, prevProps.context)) {
67-
if (!sameWeek(context.date, prevProps.context.date, firstDay)) {
67+
if (!sameWeek(context.date, prevProps.context.date, firstDay) || context.numberOfDays) {
6868
// Don't update items if the new date is on the same week
6969
this.setState({items: getDatesArray(this.props)});
7070
scrollToIndex(false);

0 commit comments

Comments
 (0)