From ce004d39d19ed5daf5307e97abe818609c87f736 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 28 Jun 2023 09:26:45 +0100 Subject: [PATCH] Fix grid keybind for submitting new rows not working --- .../frontend-core/src/components/grid/layout/NewRow.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/frontend-core/src/components/grid/layout/NewRow.svelte b/packages/frontend-core/src/components/grid/layout/NewRow.svelte index b6b5925027..f1870c2638 100644 --- a/packages/frontend-core/src/components/grid/layout/NewRow.svelte +++ b/packages/frontend-core/src/components/grid/layout/NewRow.svelte @@ -78,6 +78,11 @@ } const startAdding = async () => { + // Attempt to submit if already adding a row + if (visible && !isAdding) { + await addRow() + return + } if (visible || !firstColumn) { return }