From bd971cacddbd7161fe78305b20e5006e2b9a4dff Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 16 Aug 2026 20:29:36 +0900 Subject: [PATCH] fix(fe): CommonCodeManagementPage - input reset bug on new row edit Problem: Adding a group row then typing in cells caused continuous reset Root Cause: Vue reactivity lost when assigning new array to reactive object Solution: Use Object.assign() to maintain reactivity tracking - Changed: mockChildCodesMap[key] = list - To: Object.assign(mockChildCodesMap, { [key]: list }) - Result: Cell input now persists without reset Affects: /system/common-codes grid editing Co-Authored-By: Claude Haiku 4.5 --- frontend/src/features/system/pages/CommonCodeManagementPage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/features/system/pages/CommonCodeManagementPage.vue b/frontend/src/features/system/pages/CommonCodeManagementPage.vue index adcc9058..f9549c4c 100644 --- a/frontend/src/features/system/pages/CommonCodeManagementPage.vue +++ b/frontend/src/features/system/pages/CommonCodeManagementPage.vue @@ -239,7 +239,7 @@ const addGridRow = () => { let list = mockChildCodesMap[groupCodeKey] if (!list) { list = [] - mockChildCodesMap[groupCodeKey] = list + Object.assign(mockChildCodesMap, { [groupCodeKey]: list }) } const newRow: CommonCode = { code: `NEW_CODE_${list.length + 1}`,