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 bottompull/5039/head
commit
fb7a8a7bd3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue