Skip to content

Deactivate individual months #25

@wiskonsin

Description

@wiskonsin

Hi. First of all, thanks for implement this useful package.

I have made one modification and added the possibility to include individual disabled months even if they are between max/min range.

The idea is passing a "disabledMonthsArray" in props, for example ["202003", "202105"] (which will disable march 2020 and may 2021) and adding this check " && !this.props.noDataMonths.includes(currentYear)" on the if statement at isMonthEnabled function on MonthSelector.js.

Hope it helps to improve this package.

Thanks again!

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