-
Notifications
You must be signed in to change notification settings - Fork 31
Allowing cloned items to be dragged again. #61
Comments
I ended up using this.. If there's a cleaner way please let me know. Thanks $('.draggable').draggable({
clone: true,
});
$('.droppable').droppable({
disabled: false,
activeClass: 'active',
hoverClass: 'drop-here'
})
.on('droppable:drop', function(e, ui){
if(ui.clone){
$(ui.clone[0]).draggable();
console.log(ui);
}
}); |
I also this bug was found. I think the event fires before the advent of the DOM element.
|
I am not aware of a better solution. But, if your use cases permits this, you could use sortables and connect them together. Would you consider the drop event being fired before the DOM element got rendered as an actual issue? |
Thanks |
How can I allow cloned items to be dragged again once dropped in a droppable?
The text was updated successfully, but these errors were encountered: