fix: KsDataGrid - replicate focusRow complete logic in Enter key handler
deploy / deploy (push) Failing after 48s
deploy / notify (push) Successful in 1s

- Use exact focusRow pattern: ensureIndexVisible + setFocusedCell + startEditingCell
- Apply retry logic to all three operations
- Ensures next cell gets full focus + edit mode like focusRow
This commit is contained in:
2026-08-16 21:44:45 +09:00
parent eb410c8076
commit 5213ea142b
@@ -118,16 +118,20 @@ function onCellKeyDown(event: any): void {
event.api.stopEditing(false)
event.api.tabToNextCell(false)
const ensureEditMode = () => {
const attempt = () => {
const focusedCell = event.api.getFocusedCell()
if (focusedCell) {
event.api.startEditingCell(focusedCell)
const col = focusedCell.column.getColId()
const rowIndex = focusedCell.rowIndex
event.api.ensureIndexVisible(rowIndex)
event.api.setFocusedCell(rowIndex, col)
event.api.startEditingCell({ rowIndex, colKey: col })
}
}
ensureEditMode()
setTimeout(ensureEditMode, 10)
setTimeout(ensureEditMode, 50)
attempt()
setTimeout(attempt, 10)
setTimeout(attempt, 50)
}
}