Opened 13 years ago
Closed 10 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 10 years ago by
Milestone: | TBD → 1.11.0 |
---|
comment:2 Changed 10 years ago by
Owner: | set to nazariy |
---|---|
Status: | new → pending |
comment:3 Changed 10 years ago by
Status: | pending → 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 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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.