From 0459ca886bfba2fbe5dd12c70f3a1c2491e99d03 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Mon, 5 Apr 2021 13:30:07 +0200 Subject: [PATCH 1/2] fix datagrid insert --- packages/web/src/datagrid/DataGridCore.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web/src/datagrid/DataGridCore.svelte b/packages/web/src/datagrid/DataGridCore.svelte index a980cf8a..332b662e 100644 --- a/packages/web/src/datagrid/DataGridCore.svelte +++ b/packages/web/src/datagrid/DataGridCore.svelte @@ -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); } } From 6d6c36052196f45ced5b6afde8763c298c1f0f4e Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Mon, 5 Apr 2021 13:30:16 +0200 Subject: [PATCH 2/2] dependency --- packages/tools/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tools/package.json b/packages/tools/package.json index 2ac88855..7fbcb091 100644 --- a/packages/tools/package.json +++ b/packages/tools/package.json @@ -1,5 +1,5 @@ { - "version": "4.0.3-rc.1", + "version": "4.0.3", "name": "dbgate-tools", "main": "lib/index.js", "typings": "lib/index.d.ts",