Datepicker wrong style
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.3k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
Example:
$('#date1').datepicker();
var today = new Date(2022, 2 - 1, 23);
var event_start_date = new Date();
event_start_date.setDate(today.getDate() + 21);
$('#date1').datepicker().datepicker('setDate', event_start_date);
var event_start_date_min = new Date();
event_start_date_min.setDate(today.getDate() + 2);
$('#date1').datepicker('option', 'minDate', event_start_date_min);
Now, go to previous month and you'll notice that first availale day (25 Feb) has 'hover over' style set by default. I'm pretty sure this is not an expected behavior, therefore I report this as a bug.
Note that if you change: event_start_date.setDate(today.getDate() + 21); to: event_start_date.setDate(today.getDate() + 3);everything is fine.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied JavaScript reproduction using the #date1 datepicker, comparing the +21-day case with the +3-day case while navigating to the previous month. Trace the datepicker behavior responsible for the first available day’s hover styling; done means the first available day no longer appears hovered by default and the reproduction behaves consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100