Skip to content

Commit

Permalink
Merge pull request #4701 from jeroenmuller/orderlist-keep-correct-ord…
Browse files Browse the repository at this point in the history
…er-when-moving-multiple-to-top-or-bottom

OrderList: keep correct order when moving multiple to top or bottom
  • Loading branch information
tugcekucukoglu authored Nov 20, 2023
2 parents 6ac123c + 6a8f030 commit fb7a8a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/orderlist/OrderList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fb7a8a7

Please sign in to comment.