Prev and Next button not working as expected
Issue #38
resolved
Suppose the time was set as the current month (june) and year (2015) during initialization.
After I set the month and year of the calendar using $('#calendar').responsiveCalendar('2014-02')
On clicking the prev and next buttons it navigates to the month relative to the time which was set initially for the above example, on clicking prev it goes to 2015-01 and next navigates to 2015-03. Which is different from what I expect (2014-01 for prev) and (2014-03 for next).
Was this designed to be this way or is it a bug?
Comments (4)
-
repo owner -
reporter I was able to fix the issue by just setting the currentYear variable within the setMonth method.
-
repo owner Exactly, that's the solution :). I will release the fix soon, thx again!
-
repo owner - changed status to resolved
Bug fixed with version v0.9
- Log in to comment
Thanks for this, it's a major bug and I will fix it as soon as I can. Most probably today.