Opened 11 years ago

Closed 9 years ago

Last modified 9 years ago

#6195 closed bug (worksforme)

defaultdate doesn't work when set after initial setup for divs.

Reported by: coke Owned by:
Priority: minor Milestone:
Component: ui.datepicker Version: 1.8.5
Keywords: Cc:
Blocked by: Blocking:


Given a datepicker call on an input, setting the default date works whether you set it in the the initial call to .datepicker() or after the fact with an 'option' call.

However, for a div, setting the default date only works when setting it during the .initial .datepicker({}) call. using the option call has no effect after creation.

See attached .html file that demonstrates the problem. Verified locally using the latest stable release of jquery UI, on IE8 and FF3.6.10

Attachments (1)

datepicker_bug.html (1.1 KB) - added by coke 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by coke

Attachment: datepicker_bug.html added

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

Resolution: worksforme
Status: newclosed

There's nothing for it to do in this case. The datepicker already has a date set because it's always visible. Therefore, changing the default won't do anything. If you want to change the date, then change the date, not the default.

comment:2 Changed 9 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.