Skip to main content

Search and Top Navigation

#6094 closed bug (notabug)

Opened September 22, 2010 09:32PM UTC

Closed October 18, 2012 01:35PM UTC

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>
Attachments (0)
Change History (4)

Changed October 11, 2012 09:04PM UTC by scottgonzalez comment:1

milestone: TBD1.11.0

Changed October 18, 2012 12:40PM UTC by mikesherov comment:2

owner: → 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.

Changed October 18, 2012 01:26PM UTC by nazariy comment:3

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.

Changed October 18, 2012 01:35PM UTC by mikesherov comment:4

resolution: → notabug
status: newclosed