mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-31 07:18:13 -05:00
draggable: made connectToSortable work fine with helper: 'original' (by removing top/left properties at sort end)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user