Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#2653 closed bug (wontfix)

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.

Change History (3)

comment:1 Changed 12 years ago by flesler

Owner: set to flesler
Status: newassigned

The problem shouldn't arise until you actually append the element, which doesn't always happen.

What do you guys think ?

comment:2 in reply to:  1 Changed 12 years ago by chrishandorf

Replying to 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?

comment:3 Changed 12 years ago by flesler

Milestone: 1.2.41.3
Resolution: wontfix
Status: assignedclosed

Right ok.

Note: See TracTickets for help on using tickets.