Merge pull request #4844 from MaximilianKrambach/sortList

fixing multiselect sort in sorting lists
This commit is contained in:
Sean 2019-07-16 11:38:03 +02:00 committed by GitHub
commit 51130da791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,9 @@ export class SortingListComponent implements OnInit, OnDestroy {
} else if (dropBehind === true) { } else if (dropBehind === true) {
before.push(this.array[i]); before.push(this.array[i]);
} else { } 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 { } else {