Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

manually force refresh/render of blockedday #2241

Copy link
Copy link
Open
@ivancx

Description

@ivancx
Issue body actions

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.