Skip to main content

Bug Tracker

Side navigation

#7316 closed bug (worksforme)

Opened October 26, 2010 01:13PM UTC

Closed November 02, 2010 02:42AM UTC

Last modified February 21, 2011 08:55PM UTC

draggable clone doesn't work, without clone works fine

Reported by: veniamin.medvedev@gmail.com Owned by:
Priority: low Milestone: 1.5
Component: manipulation Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:
Description

<script src="jquery-1.4.3.min.js"></script>

<script src="jquery-ui.min.js"></script>

<html>

<head>

</head>

<body>

</body>

</html>

<script>

var icon = $("<div style='width:100px;height:100px;border-style:solid;'>");

icon.draggable({ drag:function(e,ui){}});

icon.clone(true).appendTo($("body"))

</script>

Attachments (0)
Change History (5)

Changed October 26, 2010 04:01PM UTC by rwaldron comment:1

component: unfiledmanipulation
keywords: → needsreview
priority: undecidedlow
status: newopen

Confirmed http://jsfiddle.net/rwaldron/mfcwU/2/

This needs to be reviewed further to determine if it's an issue with jQuery UI or with jQuery clone()

Changed November 02, 2010 02:42AM UTC by dmethvin comment:2

resolution: → worksforme
status: openclosed

If you want a separate draggable, apply it to the clone:

http://jsfiddle.net/mfcwU/4/

Changed November 02, 2010 02:43AM UTC by dmethvin comment:3

keywords: needsreview

Changed February 21, 2011 08:53PM UTC by tonellimartin@hotmail.com comment:4

Replying to [comment:2 dmethvin]:

If you want a separate draggable, apply it to the clone: http://jsfiddle.net/mfcwU/4/

It doesn´t work with jquery 1.5 --with or without .clone( [ withDataAndEvents ], [ deepWithDataAndEvents ] )

http://jsfiddle.net/mfcwU/26/

http://jsfiddle.net/mfcwU/27/

http://jsfiddle.net/mfcwU/28/

Changed February 21, 2011 08:55PM UTC by rwaldron comment:5

Fix should be coming in 1.5.1

http://bugs.jquery.com/ticket/8123