Merge pull request #4701 from jeroenmuller/orderlist-keep-correct-order-when-moving-multiple-to-top-or-bottom

OrderList: keep correct order when moving multiple to top or bottom
pull/5039/head
Tuğçe Küçükoğlu 2023-11-20 21:27:54 +03:00 committed by GitHub
commit fb7a8a7bd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ export default {
if(this.d_selection) {
let value = [...this.value];
for (let i = 0; i < this.d_selection.length; i++) {
for (let i = this.d_selection.length - 1; i >= 0; i--) {
let selectedItem = this.d_selection[i];
let selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, value);
@ -164,7 +164,7 @@ export default {
if (this.d_selection) {
let value = [...this.value];
for (let i = this.d_selection.length - 1; i >= 0; i--) {
for (let i = 0; i < this.d_selection.length; i++) {
let selectedItem = this.d_selection[i];
let selectedItemIndex = ObjectUtils.findIndexInList(selectedItem, value);