Bug Tracker

Ticket #7316 (closed bug: worksforme)

Opened 4 years ago

Last modified 4 years ago

draggable clone doesn't work, without clone works fine

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

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>

Change History

comment:1 Changed 4 years ago by rwaldron

  • Keywords needsreview added
  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to manipulation

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()

comment:2 follow-up: ↓ 4 Changed 4 years ago by dmethvin

  • Status changed from open to closed
  • Resolution set to worksforme

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

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

comment:3 Changed 4 years ago by dmethvin

  • Keywords needsreview removed

comment:4 in reply to: ↑ 2 Changed 4 years ago by tonellimartin@…

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

comment:5 Changed 4 years ago by rwaldron

Fix should be coming in 1.5.1

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

Note: See TracTickets for help on using tickets.