Opened 9 years ago

Closed 7 years ago

#6094 closed bug (notabug)

DatePicker incorrect behaviour for defaultDate

Reported by: nazariy Owned by: nazariy
Priority: major Milestone: 1.11.0
Component: ui.datepicker Version: 1.8.5
Keywords: defaultDate Cc:
Blocked by: Blocking:

Description

I noticed that datepicker does not work properly in calendar mode, and it does not reset ui-state-active after you change months, it looks quite bad. For example if default date is 31st of January, and you clicking on next month 28th of February would be activated automatically.

Example:

<div id="calendar"></div>

<script type="text/javascript">
$('#calendar').datepicker({
	"dateFormat":"yy-mm-dd",
	"defaultDate":"2010-07-31"
});
</script>

Change History (4)

comment:1 Changed 7 years ago by Scott González

Milestone: TBD1.11.0

comment:2 Changed 7 years ago by mikesherov

Owner: set to nazariy
Status: newpending

Thanks for contributing! I can't reproduce this using the repro steps you've provided: http://jsfiddle.net/Ucxng/3/

Please let me know if I'm missing something and I can investigate further.

comment:3 Changed 7 years ago by nazariy

Status: pendingnew

I don't remember which version of jQuery and jQuery UI was used 2 years ago when this behavior occurred. As long it is working correctly with latest library, it seems like the issue is no longer relevant.

comment:4 Changed 7 years ago by mikesherov

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.