Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels