Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deactivate individual months #25

Open
wiskonsin opened this issue Mar 12, 2020 · 0 comments
Open

Deactivate individual months #25

wiskonsin opened this issue Mar 12, 2020 · 0 comments

Comments

@wiskonsin
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant