Ticket #6094 (closed bug: notabug)

Opened 3 years ago

Last modified 7 months ago

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:
Blocking: Blocked by:

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

comment:1 Changed 8 months ago by scott.gonzalez

  • Milestone changed from TBD to 1.11.0

comment:2 Changed 7 months ago by mikesherov

  • Owner set to nazariy
  • Status changed from new to pending

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 months ago by nazariy

  • Status changed from pending to new

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 months ago by mikesherov

  • Status changed from new to closed
  • Resolution set to notabug
Note: See TracTickets for help on using tickets.