Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 2af95e5

Browse files
committed
fix(sortable): restore support for data-ui-sortable declaration
1 parent ccc6006 commit 2af95e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sortable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ angular.module('ui.sortable', [])
324324
// the value will be overwritten with the old value
325325
if(!ui.item.sortable.received) {
326326
ui.item.sortable.dropindex = getItemIndex(ui.item);
327-
var droptarget = ui.item.closest('[ui-sortable]');
327+
var droptarget = ui.item.closest('[ui-sortable], [data-ui-sortable], [x-ui-sortable]');
328328
ui.item.sortable.droptarget = droptarget;
329329
ui.item.sortable.droptargetList = ui.item.parent();
330330

0 commit comments

Comments
 (0)