Skip to content

Commit

Permalink
SortableJS#1475: Fixed _lastChild failing to ignore display:none
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-m1 authored and elo7-developer committed Nov 18, 2019
1 parent a7d0602 commit 762cea3
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 @@ -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;
}

Expand Down

0 comments on commit 762cea3

Please sign in to comment.