From 6dacf069c709a5ed20ec5f0cc851ca5b1fbf4c9c Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 16 Aug 2026 21:31:24 +0900 Subject: [PATCH] fix: KsDataGrid - simplify Enter key handler, rely on AG Grid tabToNextCell - Remove redundant startEditingCell calls that override AG Grid native behavior - Use only stopEditing + tabToNextCell with setTimeout - Let AG Grid handle edit mode auto-start for next cell --- frontend/src/shared/ui/components/KsDataGrid.vue | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/frontend/src/shared/ui/components/KsDataGrid.vue b/frontend/src/shared/ui/components/KsDataGrid.vue index aa8def51..29556146 100644 --- a/frontend/src/shared/ui/components/KsDataGrid.vue +++ b/frontend/src/shared/ui/components/KsDataGrid.vue @@ -116,18 +116,10 @@ function onCellKeyDown(event: any): void { if (event.event.key === 'Enter' && event.colDef?.editable) { event.event.preventDefault() event.api.stopEditing(false) - event.api.tabToNextCell(false) - const ensureEditMode = () => { - const focusedCell = event.api.getFocusedCell() - if (focusedCell) { - event.api.startEditingCell(focusedCell) - } - } - - ensureEditMode() - setTimeout(ensureEditMode, 10) - setTimeout(ensureEditMode, 50) + setTimeout(() => { + event.api.tabToNextCell(false) + }, 0) } }