From d7551dd2a4c98e9a8431e8cd9a61b53791950516 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 16 Aug 2026 20:48:53 +0900 Subject: [PATCH] fix(fe): KsDataGrid - add missing redrawRows method Problem: DataGridShell expects gridRef to have redrawRows() method but KsDataGrid.vue only exposed focusRow and gridApi Fixed: 1. Added redrawRows() function that calls gridApi.redrawRows() 2. Updated defineExpose to include redrawRows 3. Removed unused CellEditingStoppedEvent import Result: CommonCodeManagementPage.redrawRows() calls now work Co-Authored-By: Claude Haiku 4.5 --- frontend/src/shared/ui/components/KsDataGrid.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/shared/ui/components/KsDataGrid.vue b/frontend/src/shared/ui/components/KsDataGrid.vue index e5ef601a..f9382add 100644 --- a/frontend/src/shared/ui/components/KsDataGrid.vue +++ b/frontend/src/shared/ui/components/KsDataGrid.vue @@ -181,8 +181,11 @@ function focusRow(rowIndex: number, colKey?: string): void { setTimeout(attempt, 150) } +function redrawRows(): void { + gridApi.value?.redrawRows() +} -import type { NavigateToNextCellParams, CellPosition, CellEditingStoppedEvent } from 'ag-grid-community' +import type { NavigateToNextCellParams, CellPosition } from 'ag-grid-community' @@ -231,7 +234,7 @@ function navigateToNextCell(params: NavigateToNextCellParams): CellPosition | nu return suggestedNextCell } -defineExpose({ focusRow, gridApi }) +defineExpose({ focusRow, redrawRows, gridApi })