From d0848b8fb9a135a7486370374fb88587441eaba6 Mon Sep 17 00:00:00 2001 From: mertmit Date: Wed, 12 Oct 2022 11:29:52 +0300 Subject: [PATCH] feat: save new row on enter even if it is empty Signed-off-by: mertmit --- packages/nc-gui/components/smartsheet/Cell.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/Cell.vue b/packages/nc-gui/components/smartsheet/Cell.vue index 01cc8e824b..d37f19e3ce 100644 --- a/packages/nc-gui/components/smartsheet/Cell.vue +++ b/packages/nc-gui/components/smartsheet/Cell.vue @@ -126,7 +126,7 @@ const { const syncAndNavigate = (dir: NavigateDir, e: KeyboardEvent) => { if (isJSON.value) return - if (currentRow.value.rowMeta.changed) { + if (currentRow.value.rowMeta.changed || currentRow.value.rowMeta.new) { emit('save') currentRow.value.rowMeta.changed = false }