Skip to content

Bug in fromMonth/toMonth and showMonth method #95

@jkillian

Description

@jkillian

Say toMonth is set to December 2015 and someone tried to call showMonth(new Date(2015,11)) in order to display December 2015.

allowMonth incorrectly returns false as toMonth and d are the same month. It should return true. I believe this should be a simple fix by changing Helpers.getMonthsDiff(toMonth, d) >= 0 to Helpers.getMonthsDiff(toMonth, d) > 0 (and doing the same for fromMonth).

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