Opened 10 years ago

Closed 10 years ago

#8543 closed bug (notabug)

calling empty() on a cloned element removes jQuery UI from original as well

Reported by: gazs Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.core Version: 1.8.23
Keywords: Cc:
Blocked by: Blocking:


I'm not sure if this is a jQuery UI bug or a jQuery bug, so forgive me if I'm posting in the wrong place. I have a minimal jsfiddle example that shows the problem:

I'm cloning an element with any attached events and then emptying the cloned element. This triggers a "remove" event, which destroys the jQuery UI element in the *original* element.

Change History (1)

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

Resolution: invalid
Status: newclosed

jQuery UI doesn't support cloning.

Note: See TracTickets for help on using tickets.