Opened 7 years ago

Closed 6 years ago

Last modified 3 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 7 years ago.
Test case for destroying draggable functionality after drop
jquery-draggable-bug-workaround.html (1.3 KB) - added by bobbykjack 7 years ago.
Test case for disabling draggable functionality after drop

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by bobbykjack

Test case for destroying draggable functionality after drop

Changed 7 years ago by bobbykjack

Test case for disabling draggable functionality after drop

comment:1 Changed 7 years ago by jzaefferer

  • Milestone changed from TBD to 1.7

comment:2 Changed 7 years ago by rdworth

  • Milestone changed from 1.7 to 1.8

comment:3 Changed 6 years ago by paul

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed with r3103.

comment:4 follow-up: Changed 3 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 3 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.