diff --git a/source/js/jquery-sortable.js b/source/js/jquery-sortable.js index 5fcccf3..d1cd054 100644 --- a/source/js/jquery-sortable.js +++ b/source/js/jquery-sortable.js @@ -274,8 +274,10 @@ t = this.options.tolerance if(!box || box.top - t > y || box.bottom + t < y || box.left - t > x || box.right + t < x) - if(!this.searchValidTarget()) + if(!this.searchValidTarget()){ this.placeholder.detach() + this.lastAppendedItem = undefined + } }, drop: function (e) { this.toggleListeners('off')