From 762cea3736d41c38ed79a58e0082892c9d48c4bc Mon Sep 17 00:00:00 2001 From: owen-m1 Date: Tue, 26 Mar 2019 19:20:08 -0400 Subject: [PATCH] #1475: Fixed _lastChild failing to ignore display:none --- Sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sortable.js b/Sortable.js index 05f3d0844..1c095a4cf 100644 --- a/Sortable.js +++ b/Sortable.js @@ -2031,7 +2031,7 @@ define('sortable', [], function sortableFactory() { function _lastChild(el) { var last = el.lastElementChild; - while (last && (last === ghostEl || last.style.display === 'none')) { + while (last && (last === ghostEl || _css(last, 'display') === 'none')) { last = last.previousElementSibling; }