From 5c1f76b62db7d5c7ec71484568c66c6e13c41906 Mon Sep 17 00:00:00 2001 From: Lebedev Konstantin Date: Mon, 20 Feb 2017 17:17:01 +0300 Subject: [PATCH] #1045: fixed, If element is dragged outside the element --- Sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sortable.js b/Sortable.js index 434dd81..2f8c28c 100644 --- a/Sortable.js +++ b/Sortable.js @@ -954,7 +954,7 @@ this.save(); } - _dispatchEvent(this, el, 'leave', dragEl, lastOver.el); + _dispatchEvent(this, lastOver.el, 'leave', dragEl); } }