Side navigation
#2653 closed bug (wontfix)
Opened April 04, 2008 07:44PM UTC
Closed May 27, 2008 11:29PM UTC
Last modified March 15, 2012 09:07AM UTC
clone() and ID attribute
Reported by: | chrishandorf | Owned by: | flesler |
---|---|---|---|
Priority: | minor | Milestone: | 1.3 |
Component: | core | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The clone() function as well as the jQuery UI "helper:clone" function will also clone the ID attribute of the original. So 2 objects in the browser now have same ID. This caused me some problems with drag and drop when using helper:clone.
It seems to me that the clone() function should automatically clear the ID attribute (if any) on all elements that are cloned.
Attachments (0)
Change History (3)
Changed May 16, 2008 06:41PM UTC by comment:1
owner: | → flesler |
---|---|
status: | new → assigned |
Changed May 21, 2008 12:34AM UTC by comment:2
Replying to [comment:1 flesler]:
The problem shouldn't arise until you actually append the element, which doesn't always happen. What do you guys think ?
Sorry for the trouble - I think I have worked around this problem and its probably a good thing the id isn't cleared by helper:clone. If it was then how would I know what the ID of the original object that started the drag was?
Changed May 27, 2008 11:29PM UTC by comment:3
milestone: | 1.2.4 → 1.3 |
---|---|
resolution: | → wontfix |
status: | assigned → closed |
Right ok.
The problem shouldn't arise until you actually append the element, which doesn't always happen.
What do you guys think ?