Skip to content

Datepicker wrong style #2056

Open
Open
@karolm2

Description

@karolm2

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.

bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions