Ticket #4239 (closed bug: fixed)

Opened 6 years ago

Last modified 17 months ago

Cannot destroy draggable functionality after drop

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

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

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

Change History

Changed 6 years ago by bobbykjack

Test case for destroying draggable functionality after drop

Changed 6 years ago by bobbykjack

Test case for disabling draggable functionality after drop

comment:1 Changed 6 years ago by joern.zaefferer

  • Milestone changed from TBD to 1.7

comment:2 Changed 5 years ago by rdworth

  • Milestone changed from 1.7 to 1.8

comment:3 Changed 5 years ago by paul

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

Should be fixed with r3103.

comment:4 follow-up: ↓ 5 Changed 17 months 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 17 months 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.