Search and Top Navigation
#7044 closed bug (notabug)
Opened February 28, 2011 10:42AM UTC
Closed August 18, 2014 01:39AM UTC
Draggable: appendTo option doesn't work together with helper: 'original'
Reported by: | Love_silense | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.11.2 |
Component: | ui.draggable | Version: | 1.8.10 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
from draggable plugin
_createHelper: function(event) { ... if(!helper.parents('body').length) helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo)); ... }
The if conditions means it, and it is. Looks like bug.
Attachments (0)
Change History (6)
Changed February 28, 2011 10:54AM UTC by comment:1
component: | ui.core → ui.draggable |
---|---|
version: | 1.8.9 → 1.8.10 |
Changed February 28, 2011 11:23AM UTC by comment:2
summary: | Append to doesn't work with original helper → Draggable: appendTo option doesn't work together with helper: 'original' |
---|
Minimal test page http://jsbin.com/inoye3
Changed February 28, 2011 11:36AM UTC by comment:3
_comment0: | In order to fix this, we would need to keep a reference to the original element's parent and index, for returning it back there. Such a reference rather than a placeholder element, as no one element type (such as div) can be put in place of all other elements (such as an li). \ \ A workaround in the meantime is to use helper: "clone" and hide the original on dragStart and show and dragStop. → 1298893036488548 |
---|
In order to fix this, we would need to keep a reference to the original element's parent and index, for returning it back there. Such a reference rather than a placeholder element, as no one element type (such as div) can be put in place of all other elements (such as an li).
A workaround in the meantime is to use helper: "clone" and hide the original on dragStart and show on dragStop.
Changed October 11, 2012 02:49PM UTC by comment:4
milestone: | 1.9.0 → 2.0.0 |
---|
Changed October 26, 2012 05:43AM UTC by comment:5
status: | new → open |
---|
Changed August 18, 2014 01:39AM UTC by comment:6
milestone: | 2.0.0 → 1.11.2 |
---|---|
resolution: | → notabug |
status: | open → closed |
This is expected and the documented behavior. I've opened a ticket to clarify it further, but this won't be fixed: https://github.com/jquery/api.jqueryui.com/issues/224