From 5b907bf8116edcc56ca35df9d26f2cb51b1ba063 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 7ea16eef7..0b2166139 100644 --- a/Sortable.js +++ b/Sortable.js @@ -2041,7 +2041,7 @@ 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; }