From ea1aa2de6b0569384db5ebed939ee3443824ca5a Mon Sep 17 00:00:00 2001 From: RubaXa Date: Mon, 15 Dec 2014 00:27:40 +0300 Subject: [PATCH] #166: + stopPropagation in _onDragOver --- Sortable.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sortable.js b/Sortable.js index 91c5236..cf9ff44 100644 --- a/Sortable.js +++ b/Sortable.js @@ -276,6 +276,8 @@ _css(cloneEl, 'display', 'none'); rootEl.insertBefore(cloneEl, dragEl); } + + Sortable.active = this; } }, @@ -446,6 +448,8 @@ isOwner = (activeGroup === group), canSort = options.sort; + (evt.stopPropagation !== void 0) && evt.stopPropagation(); + if (!_silent && activeGroup && (isOwner ? canSort || (revert = !rootEl.contains(dragEl)) @@ -626,7 +630,8 @@ lastEl = lastCSS = - activeGroup = null; + activeGroup = + Sortable.active = null; // Save sorting this.options.store && this.options.store.set(this); -- GitLab