Opened 7 years ago

Last modified 7 years ago

#8437 open bug

Droppable: Destroying draggable inside drop callback throws TypeError

Reported by: kenterfie Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.droppable Version: 1.8.21
Keywords: Cc:
Blocked by: Blocking:

Description

If i try to destroy a draggable element after drop like this

$('#one').draggable(); $('#two').droppable({

drop: function(event, ui) {

ui.draggable.draggable("destroy");

}

});

then i get a TypeError, because no destroy option is available.

this snippet of code reproduce the problem. notice you try it with debug console http://jsfiddle.net/cM4Eb/1/

Change History (2)

comment:1 Changed 7 years ago by Scott González

Component: ui.coreui.droppable
Status: newopen
Summary: Destroy of ui.draggable throws TypeErrorDroppable: Destroying draggable inside drop callback throws TypeError

comment:2 Changed 7 years ago by Scott González

Milestone: 1.9.02.0.0
Note: See TracTickets for help on using tickets.