Opened 14 years ago

Closed 14 years ago

Last modified 10 years ago

#4239 closed bug (fixed)

Cannot destroy draggable functionality after drop

Reported by: bobbykjack Owned by:
Priority: minor Milestone: 1.8
Component: ui.draggable Version: 1.6rc6
Keywords: Cc:
Blocked by: Blocking:

Description

This is very similar to #4088 and #4087 except that I'm trying to destroy the draggable functionality once it's been dropped, not destroy the entire element. At that method call, I currently get this error:

$(this).data("draggable") is undefined
var o = $(this).data('draggable').options;
ui.draggable.js (line 583)

I'm attaching two files to demo the problem and a workaround (whose side-effects I'm not too clear on).

Attachments (2)

jquery-draggable-bug.html (1.3 KB) - added by bobbykjack 14 years ago.
Test case for destroying draggable functionality after drop
jquery-draggable-bug-workaround.html (1.3 KB) - added by bobbykjack 14 years ago.
Test case for disabling draggable functionality after drop

Download all attachments as: .zip

Change History (7)

Changed 14 years ago by bobbykjack

Attachment: jquery-draggable-bug.html added

Test case for destroying draggable functionality after drop

Changed 14 years ago by bobbykjack

Test case for disabling draggable functionality after drop

comment:1 Changed 14 years ago by Jörn Zaefferer

Milestone: TBD1.7

comment:2 Changed 14 years ago by rdworth

Milestone: 1.71.8

comment:3 Changed 14 years ago by paul

Resolution: fixed
Status: newclosed

Should be fixed with r3103.

comment:4 Changed 10 years ago by usiw

This problem still exists in 1.10.2. Either the original fix was reverted or it was never resolved to begin with.

comment:5 in reply to:  4 Changed 10 years ago by tj.vantoll

Replying to usiw:

This problem still exists in 1.10.2. Either the original fix was reverted or it was never resolved to begin with.

The test case originally created with this issue appears to be working just fine against the latest code in master: http://jsfiddle.net/tj_vantoll/7huH8/. If you have an issue that you would like us to look into we'll need a test case that shows the issue.

Note: See TracTickets for help on using tickets.