From 3b424f3bc072d114656a9595311923a622943d4e Mon Sep 17 00:00:00 2001 From: why520crazy Date: Mon, 16 Nov 2015 15:44:15 +0800 Subject: [PATCH] fix bug about cancel drag when set sort=false fix bug about cancel drag when set sort=false --- Sortable.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sortable.js b/Sortable.js index cac6f7115..f0c59b0ec 100644 --- a/Sortable.js +++ b/Sortable.js @@ -95,7 +95,7 @@ scrollEl = options.scroll; scrollParentEl = rootEl; - if (scrollEl === true) { + if (scrollEl =_onDragOver== true) { scrollEl = rootEl; do { @@ -606,7 +606,8 @@ else if (!canSort) { rootEl.appendChild(dragEl); } - + //fix bug when cancel drag + parentEl = dragEl.parentNode; return; }