You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use <DayPickerRangeController
...
onFocusChange={this.onFocusChange} // PropTypes.func.isRequired,
isDayBlocked={this.dayBlocked}
//onMonthChage={this.monthChange}
onNextMonthClick={this.monthChange}
onPrevMonthClick={this.monthChange}
/>
this.monthChange updates state variables for blocked days.
On first run we fill blocked days for next 60 days.
Problem is that onNextMonthClick is called after month is changed, isDayblocked is already called for all days in that new month.
So this.monthChange changes our internal variable of blocked days and when it is changed we should show how send infor to DayPickerRangeController to refresh/repaint blocked days manually?
Is this possible or is there a workaround for this situation?
The text was updated successfully, but these errors were encountered:
We use <DayPickerRangeController
...
onFocusChange={this.onFocusChange} // PropTypes.func.isRequired,
isDayBlocked={this.dayBlocked}
//onMonthChage={this.monthChange}
onNextMonthClick={this.monthChange}
onPrevMonthClick={this.monthChange}
/>
this.monthChange updates state variables for blocked days.
On first run we fill blocked days for next 60 days.
Problem is that onNextMonthClick is called after month is changed, isDayblocked is already called for all days in that new month.
So this.monthChange changes our internal variable of blocked days and when it is changed we should show how send infor to DayPickerRangeController to refresh/repaint blocked days manually?
Is this possible or is there a workaround for this situation?
The text was updated successfully, but these errors were encountered: