Skip to content

Strange behavior when clicking days with outside modifier #97

@jkillian

Description

@jkillian

The first bug is that clicking outside days only changes the month if you have an onDayClick prop set (which is surprising behavior). This seems to be because handleDayClick is only called if props.onDayClick is set. I think this should maybe be opt-in behavior that happens regardless of onDayClick's value?

The second bug is that you can use this month changing functionality to navigate to days outside of the bounds set by fromMonth and toMonth. It seems that showMonthForOutsideDays doesn't check if the month is allowed or not. Perhaps instead of calling setState directly it should call showMonth instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions