mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 14:33:59 +00:00
fix datagrid insert
This commit is contained in:
@@ -346,7 +346,7 @@
|
|||||||
grider.endUpdate();
|
grider.endUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
export function insertNewRow() {
|
export async function insertNewRow() {
|
||||||
if (grider.canInsert) {
|
if (grider.canInsert) {
|
||||||
const rowIndex = grider.insertRow();
|
const rowIndex = grider.insertRow();
|
||||||
const cell = [rowIndex, (currentCell && currentCell[1]) || 0];
|
const cell = [rowIndex, (currentCell && currentCell[1]) || 0];
|
||||||
@@ -354,6 +354,7 @@
|
|||||||
currentCell = cell;
|
currentCell = cell;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
selectedCells = [cell];
|
selectedCells = [cell];
|
||||||
|
await tick();
|
||||||
scrollIntoView(cell);
|
scrollIntoView(cell);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user