Ticket #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: | ||
| 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
Change History
Changed 4 years ago by bobbykjack
-
attachment
jquery-draggable-bug.html
added
Changed 4 years ago by bobbykjack
-
attachment
jquery-draggable-bug-workaround.html
added
Test case for disabling draggable functionality after drop
comment:3 Changed 4 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 5 weeks 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 4 weeks 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.


Test case for destroying draggable functionality after drop