Skip to content

Commit

Permalink
#1475: Fixed _lastChild failing to ignore display:none
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-m1 committed Mar 26, 2019
1 parent b483211 commit 5b907bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5b907bf

Please sign in to comment.