From 44c2b687583b71d713c3edafec137ceed6b326d4 Mon Sep 17 00:00:00 2001 From: RubaXa Date: Mon, 7 Sep 2015 13:52:23 +0300 Subject: [PATCH] #538: * preventDefault only if 'active' --- Sortable.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sortable.js b/Sortable.js index 9a24f6e..216b714 100644 --- a/Sortable.js +++ b/Sortable.js @@ -665,8 +665,10 @@ this._offUpEvents(); if (evt) { - evt.preventDefault(); - !options.dropBubble && evt.stopPropagation(); + if (Sortable.active) { + evt.preventDefault(); + !options.dropBubble && evt.stopPropagation(); + } ghostEl && ghostEl.parentNode.removeChild(ghostEl);