-
-
Notifications
You must be signed in to change notification settings - Fork 727
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
Bug in fromMonth/toMonth and showMonth method #95
Comments
Published as v1.1.5 🤖 |
@gpbl think you forgot to run the build for bower 😉 |
Grrr yes sure... I have to remember to run the Anyway, I would not publish a new npm release for this. I just updated |
Yep, that should work - thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Say
toMonth
is set to December 2015 and someone tried to callshowMonth(new Date(2015,11))
in order to display December 2015.allowMonth
incorrectly returns false astoMonth
andd
are the same month. It should return true. I believe this should be a simple fix by changingHelpers.getMonthsDiff(toMonth, d) >= 0
toHelpers.getMonthsDiff(toMonth, d) > 0
(and doing the same forfromMonth
).The text was updated successfully, but these errors were encountered: