From 5164f04b66d205b3ef46c82a5fa3318d33244067 Mon Sep 17 00:00:00 2001 From: yotakii Date: Mon, 23 Feb 2026 14:12:32 +0300 Subject: [PATCH] fix(hr): keep input focus while typing in form modal --- frontend/src/app/hr/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/hr/page.tsx b/frontend/src/app/hr/page.tsx index 8a55966..576b59b 100644 --- a/frontend/src/app/hr/page.tsx +++ b/frontend/src/app/hr/page.tsx @@ -305,7 +305,7 @@ function HRContent() { const totalSalary = employees.reduce((sum, e) => sum + e.baseSalary, 0) // Render Form Fields Component - const FormFields = ({ isEdit = false }: { isEdit?: boolean }) => ( + const renderFormFields = (isEdit = false) => (
@@ -804,7 +804,7 @@ function HRContent() { size="xl" >
- + {renderFormFields()} @@ -819,7 +819,7 @@ function HRContent() { size="xl" >
- + {renderFormFields(true)}