Skip to content

Commit 071f190

Browse files
committed
fixed detection for display:block
1 parent d373ea0 commit 071f190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
}
135135
return (child1 &&
136136
(
137-
firstChildCSS.display === 'block' ||
137+
child1.style.display === 'block' || // getComputedStyle() gives 'block' when 'inline-block'
138138
firstChildCSS.display === 'flex' ||
139139
firstChildCSS.display === 'table' ||
140140
firstChildCSS.display === 'grid' ||

0 commit comments

Comments
 (0)