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

Commit e591eea

Browse files
committed
refactor(sortable): make getPlaceholderExcludesludes more generic
1 parent 15de356 commit e591eea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sortable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ angular.module('ui.sortable', [])
155155
// exact match with the placeholder's class attribute to handle
156156
// the case that multiple connected sortables exist and
157157
// the placehoilder option equals the class of sortable items
158-
var excludes = element.find('[class="' + placeholder.attr('class') + '"]:not([ng-repeat], [data-ng-repeat])');
158+
var notCssSelector = uiSortableConfig.items.replace(/>/g, '');
159+
var excludes = element.find('[class="' + placeholder.attr('class') + '"]:not(' + notCssSelector + ')');
159160
return excludes;
160161
}
161162

0 commit comments

Comments
 (0)