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