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.
2 parents ed80013 + 53f4350 commit 77c616eCopy full SHA for 77c616e
src/expandableCalendar/WeekCalendar/index.tsx
@@ -64,7 +64,7 @@ class WeekCalendar extends Component<WeekCalendarProps, State> {
64
const {shouldComponentUpdate, getDatesArray, scrollToIndex} = this.presenter;
65
66
if (shouldComponentUpdate(this.props.context, prevProps.context)) {
67
- if (!sameWeek(context.date, prevProps.context.date, firstDay)) {
+ if (!sameWeek(context.date, prevProps.context.date, firstDay) || context.numberOfDays) {
68
// Don't update items if the new date is on the same week
69
this.setState({items: getDatesArray(this.props)});
70
scrollToIndex(false);
0 commit comments