defaultDate option in datepicker is not being respected
rveloso opened this issue · comments
I've tried
$('#from').datepicker({
dateFormat: 'yy-mm-dd',
defaultDate: '+1w'
});
and even putting a Date object there and the field is always empty ..
actually there are two problems: the current date is not highlighted in the calendar, and the defaultDate also does not get highlighted in the calendar.
I'm seeing this problem as well. If I use the markup below with the Aristo theme, and the input value is blank, when I click on the field and the calendar pops up, the current date isn't selected by default. If I swap out the Aristo with the Cupertino theme for example, then the current date is selected by default on the calendar.
$("#dueDate").datepicker({
numberOfMonths: 2
});
@rveloso I was able to fix one of these two issues in a pull request I just submitted. This will cause the current date to have a 1px border around it using the .ui-state-active color, unless the current value in the input field and the current date are the same, in which case the whole table cell has the .ui-state-active color set with a white font.
I believe this is fixed now and the issue can be closed