@esfaenza/es-table 11.2.22-beta35 → 11.2.22-beta36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/esfaenza-es-table.umd.js +2 -2
- package/bundles/esfaenza-es-table.umd.js.map +1 -1
- package/bundles/esfaenza-es-table.umd.min.js +1 -1
- package/bundles/esfaenza-es-table.umd.min.js.map +1 -1
- package/esm2015/lib/core/handlers/classes/ColumnMetadataHandler.js +3 -3
- package/fesm2015/esfaenza-es-table.js +2 -2
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/package.json +1 -1
|
@@ -1667,13 +1667,13 @@
|
|
|
1667
1667
|
}
|
|
1668
1668
|
else {
|
|
1669
1669
|
//Quando spinno riporto l'elemento allo stesso indice in cui era prima (se sono stati fatti spostamenti nel mezzo cazzi dell'utente)
|
|
1670
|
-
if (columnItem.prev_index)
|
|
1670
|
+
if (columnItem.prev_index != null && columnItem.prev_index != undefined)
|
|
1671
1671
|
this.utilities.arrayMove(this.est.TMPColumnsList, itemIndex, columnItem.prev_index);
|
|
1672
1672
|
else {
|
|
1673
1673
|
// Se spinno senza un prev_index vuol dire che la colonna era pinnata da configurazione. La sposto nel primo punto disponibile
|
|
1674
1674
|
for (var i = 0; i < this.est.TMPColumnsList.length; i++) {
|
|
1675
1675
|
if (!this.est.TMPColumnsList[i].pinned) {
|
|
1676
|
-
this.utilities.arrayMove(this.est.TMPColumnsList, itemIndex, i);
|
|
1676
|
+
this.utilities.arrayMove(this.est.TMPColumnsList, itemIndex, i - 1);
|
|
1677
1677
|
break;
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|