Search and Top Navigation
#6999 closed bug (duplicate)
Opened February 16, 2011 02:20PM UTC
Closed March 17, 2013 02:02PM UTC
Draggable: helper doesn't get removed if draggable has been removed during drag
Reported by: | PvZ | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 2.0.0 |
Component: | ui.draggable | Version: | 1.8.9 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When a Draggable uses a helper, the helper is not correctly removed if the Draggable has been removed while dragging. An example can be found at jsfiddle. Unfortunately the example uses jQuery UI 1.8.7, which suffered from additional bugs around removal of Draggables while dragging. Reproducing the actual issue will require 1.8.9 or WIP code.
From what I can tell, the problem seems to lie in the following bit of Draggable (around line 197).
#!js //if the original element is removed, don't bother to continue if(!this.element[0] || !this.element[0].parentNode) return false;
Changing this to the following seems to help:
#!js //if the original element is removed, don't bother to continue if(!this.element[0] || !this.element[0].parentNode) { this._clear (); return false; }
Attachments (0)
Change History (4)
Changed February 16, 2011 02:27PM UTC by comment:1
Changed October 11, 2012 02:49PM UTC by comment:2
milestone: | 1.9.0 → 2.0.0 |
---|
Changed October 27, 2012 07:33PM UTC by comment:3
status: | new → open |
---|---|
summary: | Draggable does not remove helper if draggable has been removed → Draggable: helper doesn't get removed if draggable has been removed during drag |
confirmed: http://jsfiddle.net/RBT6A/ and related to #6871
The jsfiddle-link I posted in the ticket also exhibits a second bug I was going to report separately. jsfiddle should only exhibit the original issue.