fixing multiselect sort in sorting lists

This commit is contained in:
Maximilian Krambach 2019-07-12 12:51:54 +02:00
parent af538436e3
commit e199926451
1 changed files with 3 additions and 1 deletions

View File

@ -188,7 +188,9 @@ export class SortingListComponent implements OnInit, OnDestroy {
} else if (dropBehind === true) {
before.push(this.array[i]);
} else {
event.currentIndex < 1 ? behind.push(this.array[i]) : before.push(this.array[i]);
Math.min(...this.multiSelectedIndex) < i
? before.push(this.array[i])
: behind.push(this.array[i]);
}
}
} else {