Skip to main content

Search and Top Navigation

#4921 closed bug (notabug)

Opened October 20, 2009 10:45AM UTC

Closed November 16, 2009 01:09PM UTC

Last modified October 11, 2012 09:15PM UTC

datepicker can't be clone propertily

Reported by: pokerwen Owned by:
Priority: critical Milestone:
Component: ui.datepicker Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

i have a input linked to datepicker in my demo. i can't clone the datepicker after i do some steps like below:

1.focus on the last cell in the first row, so that call out the datepicker; "add Row"; row is added;

3.focus on the last cell in the last row.

the datepicker dose not work.

but if i omit the step 1,the demo is ok..

please kindly help.

Attachments (1)
  • datepicker test.rar (77.5 KB) - added by pokerwen October 20, 2009 10:49AM UTC.

    please call me when i dosn't describe the problem clearily

Change History (6)

Changed October 21, 2009 01:21AM UTC by pokerwen comment:1

I'm running this program on win xp and IE.

Changed October 21, 2009 08:39AM UTC by pokerwen comment:2

I finally worked it out..

i flow steps shown below:

1.clone the element which need to show DatePicker

2.the "hasDatepicker" class should be remove after being clone $(object).datepicker();

Changed November 16, 2009 01:09PM UTC by jzaefferer comment:3

resolution: → invalid
status: newclosed

Problem solved?

Changed April 03, 2012 08:20PM UTC by psy0rz comment:4

Please reopen this ticket.

The way the datepicker is implemented doesnt allow it to be cloned. There are numerous of clumsy workarounds on the internet like this one:

Most of them have side effects and are ugly.

So i still consider this a bug: I think the datepicker should be implemented in such a way it can be cloned without a problem.

If thats difficult because we cant do without that unique id-attribute, then we should add a datepicker("reinit") function. (datepicker("refresh") doenst seem to deal with this)

Changed April 03, 2012 08:53PM UTC by scottgonzalez comment:5

See #3803. We don't support this for any widget, and likely won't.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:6

milestone: TBD

Milestone TBD deleted