@colijnit/corecomponents_v12 259.1.25 → 259.1.26
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/colijnit-corecomponents_v12.umd.js +2 -12
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +3 -13
- package/fesm2015/colijnit-corecomponents_v12.js +2 -12
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/package.json +1 -1
|
@@ -10810,24 +10810,14 @@
|
|
|
10810
10810
|
if (this._newRow) {
|
|
10811
10811
|
this.saveRow.next(this._newRowReference);
|
|
10812
10812
|
this._newRowReference = null; // clear
|
|
10813
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
10813
10814
|
}
|
|
10814
10815
|
else {
|
|
10815
10816
|
var index = -1; // existing row
|
|
10816
|
-
if (this.rowsPerPage) {
|
|
10817
|
-
index = (this.currentPage - 1) * this.rowsPerPage + this.editRowIndex;
|
|
10818
|
-
}
|
|
10819
|
-
else {
|
|
10820
|
-
index = this.editRowIndex;
|
|
10821
|
-
}
|
|
10822
10817
|
if (index >= 0 && index < this.data.length) {
|
|
10823
|
-
this.saveRow.next(this.data[
|
|
10818
|
+
this.saveRow.next(this.data[this.editRowIndex]);
|
|
10824
10819
|
}
|
|
10825
10820
|
}
|
|
10826
|
-
if (this.currentPage !== 1) {
|
|
10827
|
-
this.currentPage = 1;
|
|
10828
|
-
this.selectedRowIndex = -1;
|
|
10829
|
-
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
10830
|
-
}
|
|
10831
10821
|
this._newRow = false;
|
|
10832
10822
|
if (stopediting) {
|
|
10833
10823
|
this._resetEdit();
|