jquery-ui icon indicating copy to clipboard operation
jquery-ui copied to clipboard

Datepicker wrong style

Open karolm2 opened this issue 3 years ago • 1 comments

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

karolm2 avatar Feb 23 '22 20:02 karolm2

Thanks for the report. Does the issue you describe exist when jQuery UI 1.12.1 is used or only with jQuery UI 1.13.0 or newer?

mgol avatar Mar 01 '22 23:03 mgol