mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
sortable: all events of the inner nodes of the sortable item were unbound after the sort (this is related to remove() in jQuery, bugfix is not to use remove()), fixes #3488
This commit is contained in:
parent
9be9c9f699
commit
0e16fcf1e8
@ -791,7 +791,9 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
|
|||||||
|
|
||||||
this._propagate("beforeStop", e, null, noPropagation);
|
this._propagate("beforeStop", e, null, noPropagation);
|
||||||
|
|
||||||
this.placeholder.remove();
|
//$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!
|
||||||
|
this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
|
||||||
|
|
||||||
if(this.options.helper != "original") this.helper.remove(); this.helper = null;
|
if(this.options.helper != "original") this.helper.remove(); this.helper = null;
|
||||||
this._propagate("stop", e, null, noPropagation);
|
this._propagate("stop", e, null, noPropagation);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user