fix: Fix index calculation
Add a filter to count cards only in the target column.stable
parent
93f56da918
commit
8ed2a0d631
|
@ -86,7 +86,7 @@ KanbanSortableDirective = ($repo, $rs, $rootscope) ->
|
|||
dragMultipleItems = [item]
|
||||
|
||||
firstElement = dragMultipleItems[0]
|
||||
index = $(firstElement).index('.card')
|
||||
index = $(parentEl).find('tg-card').index(firstElement)
|
||||
newStatus = newParentScope.s.id
|
||||
|
||||
usList = _.map dragMultipleItems, (item) -> $(item).scope().us
|
||||
|
|
Loading…
Reference in New Issue