From 854dad6d14dce3392598856b7fbf2bae43b91686 Mon Sep 17 00:00:00 2001 From: mertmit Date: Tue, 19 Dec 2023 15:31:28 +0300 Subject: [PATCH] fix: clear fill handle properly on expanded form close Signed-off-by: mertmit --- packages/nc-gui/components/smartsheet/grid/Table.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/grid/Table.vue b/packages/nc-gui/components/smartsheet/grid/Table.vue index e15bce4ee1..b1245ad5f0 100644 --- a/packages/nc-gui/components/smartsheet/grid/Table.vue +++ b/packages/nc-gui/components/smartsheet/grid/Table.vue @@ -1027,13 +1027,11 @@ eventBus.on(async (event, payload) => { addColumnDropdown.value = true } if (event === SmartsheetStoreEvents.CLEAR_NEW_ROW) { - const removed = removeRowIfNew?.(payload) + clearSelectedRange() + activeCell.row = null + activeCell.col = null - if (removed) { - clearSelectedRange() - activeCell.row = null - activeCell.col = null - } + removeRowIfNew?.(payload) } })