Skip to content

Commit 3526e7f

Browse files
author
CBenni
committed
Sortable: Improved compatibility with flexbox
Added detection for flexbox into _isFloating, which improves the detection of where an item is moved to Ref: #9344
1 parent 1121655 commit 3526e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/widgets/sortable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
8282
},
8383

8484
_isFloating: function( item ) {
85-
return ( /left|right/ ).test( item.css( "float" ) ) || ( /inline|table-cell/ ).test( item.css( "display" ) );
85+
return ( /left|right/ ).test( item.css( "float" ) ) || ( /inline|table-cell/ ).test( item.css( "display" ) ) || ( /flex/ ).test( this.element.css( "display" ) );
8686
},
8787

8888
_create: function() {

0 commit comments

Comments
 (0)