I just googled a lot but couldn't find an answer.
I have a resizable div and want to drop something onto it. It works very well so far. But when I use the clone-helper, the item just disappears when dropped. What am I doing wrong?
$('#resizable').droppable({
});
$('.base').draggable({
helper: 'clone',
stack: '#resizable',
containment: '#resizable',
cursor: 'move',
appendTo: '#resizable'
});
I played with appendTo, accept and everything. I just can't get it to work... Any idea is appreciated very much!
I would try adding the following to your droppable's options:
$('#resizable').droppable({
drop: function(event, ui) {
$.ui.ddmanager.current.cancelHelperRemoval = true;
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With