mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
draggable: made connectToSortable work fine with helper: 'original' (by removing top/left properties at sort end)
This commit is contained in:
parent
1828aab85d
commit
3b09c17bc7
@ -428,6 +428,11 @@ $.ui.plugin.add("draggable", "connectToSortable", {
|
||||
this.instance.element.triggerHandler("sortreceive", [event, $.extend(this.instance._ui(), { sender: inst.element })], this.instance.options["receive"]);
|
||||
|
||||
this.instance.options.helper = this.instance.options._helper;
|
||||
|
||||
if(inst.options.helper == 'original') {
|
||||
this.instance.currentItem.css({ top: 'auto', left: 'auto' });
|
||||
}
|
||||
|
||||
} else {
|
||||
this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance
|
||||
this.instance._propagate("deactivate", event, inst);
|
||||
|
Loading…
Reference in New Issue
Block a user