From 16522855a6d76a237dced06f69738715e84af7d1 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 16 Aug 2026 21:26:14 +0900 Subject: [PATCH] fix: KsDataGrid - add retry logic for Enter key edit mode - Use multiple setTimeout attempts after tabToNextCell - Ensures next cell enters edit mode reliably - Matches focusRow() reliability pattern --- frontend/src/shared/ui/components/KsDataGrid.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/shared/ui/components/KsDataGrid.vue b/frontend/src/shared/ui/components/KsDataGrid.vue index be73b532..aa8def51 100644 --- a/frontend/src/shared/ui/components/KsDataGrid.vue +++ b/frontend/src/shared/ui/components/KsDataGrid.vue @@ -118,12 +118,16 @@ function onCellKeyDown(event: any): void { event.api.stopEditing(false) event.api.tabToNextCell(false) - setTimeout(() => { + const ensureEditMode = () => { const focusedCell = event.api.getFocusedCell() - if (focusedCell && focusedCell.rowIndex !== null) { - event.api.startEditingCell({ rowIndex: focusedCell.rowIndex, colKey: focusedCell.column.getColId() }) + if (focusedCell) { + event.api.startEditingCell(focusedCell) } - }, 0) + } + + ensureEditMode() + setTimeout(ensureEditMode, 10) + setTimeout(ensureEditMode, 50) } }