jquery-ui
jquery-ui copied to clipboard
Datepicker wrong style
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.

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?