diff options
-rw-r--r-- | ui/ui.sortable.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js index af48588d5..f9777ddc5 100644 --- a/ui/ui.sortable.js +++ b/ui/ui.sortable.js @@ -790,8 +790,10 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, { } 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; this._propagate("stop", e, null, noPropagation); |