Ticket #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: | |
| 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: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.
Note: See
TracTickets for help on using
tickets.

