2

I can't drop a cloned image. But this works when I comment the helper:"clone" option.

$(document).ready(function(){

    $("#drag").draggable({
        helper:"clone",
        revert:"invalid"
    });
    $("#table4").droppable();

});
James Montagne
  • 77,516
  • 14
  • 110
  • 130
joHN
  • 1,765
  • 3
  • 15
  • 31

2 Answers2

0

I think this resolves your issue: When I make a draggable clone and drop it in a droppable I cannot drag it again.

Ps.: A simple search was enough to find this.

Community
  • 1
  • 1
Ricardo Souza
  • 16,030
  • 6
  • 37
  • 69
0

the helper is only for visuals.

if you want to clone the image and drop it .. try something like that:

$("#table4").droppable({
    accept: "#page",
    tolerance: "touch",
    drop: function (event, ui) {
        ui.draggable.clone().appendTo(this);
    }
});
Egi
  • 1,256
  • 9
  • 20