Skip to content
This repository was archived by the owner on Feb 14, 2019. It is now read-only.

Month with the class "active" is the wrong one #277

Closed
lyziane opened this issue Jul 3, 2014 · 2 comments
Closed

Month with the class "active" is the wrong one #277

lyziane opened this issue Jul 3, 2014 · 2 comments

Comments

@lyziane
Copy link

lyziane commented Jul 3, 2014

The wrong month has the class "active". It is always the second month before the one that is the actual current one. For example, right now in July, by default the month of May will be the one highlighted with the class "active". If you pick a date in November and go back to the datepicker year view, September will be highlighted.

@Konsi
Copy link

Konsi commented Jul 14, 2014

The bug is on line 676. A wrong selector pushes the arrows 'prev' and 'next' inside the 'months' object
Change:
.find('span').removeClass('active');
to:
.find('.month').removeClass('active');

Should work correct then.

@lyziane
Copy link
Author

lyziane commented Jul 14, 2014

It fixed it. Thank you! You should propose this fix to the project.

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

No branches or pull requests

2 participants