mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-05 11:05:37 -05:00
draggable,sortable: if connectToSortable is used, ui.sender has to be the original draggable (fixes #3856)
This commit is contained in:
@@ -902,7 +902,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
|
||||
this.currentItem.show();
|
||||
}
|
||||
|
||||
if(this.fromOutside && !noPropagation) this._trigger("receive", event, this._uiHash(this));
|
||||
if(this.fromOutside && !noPropagation) this._trigger("receive", event, this._uiHash(this.fromOutside));
|
||||
if((this.fromOutside || this.domPosition.prev != this.currentItem.prev().not("."+this.options.cssNamespace+"-sortable-helper")[0] || this.domPosition.parent != this.currentItem.parent()[0]) && !noPropagation) this._trigger("update", event, this._uiHash()); //Trigger update callback if the DOM position has changed
|
||||
if(!$.ui.contains(this.element[0], this.currentItem[0])) { //Node was moved out of the current element
|
||||
if(!noPropagation) this._trigger("remove", event, this._uiHash());
|
||||
|
||||
Reference in New Issue
Block a user