From 7a2b0b1c97b2ef1f34b892c919de385479fbcdd6 Mon Sep 17 00:00:00 2001 From: Jeong Daseul <98886223+goodaseul@users.noreply.github.com> Date: Mon, 23 Feb 2026 13:04:39 +0900 Subject: [PATCH] =?UTF-8?q?feature:=20=EB=AA=A8=EB=8B=AC=20=EC=98=A4?= =?UTF-8?q?=ED=94=88=EC=8B=9C=20=EC=B2=AB=EB=B2=88=EC=A7=B8=20input?= =?UTF-8?q?=EC=97=90=20focus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(protected)/_components/modal/word/ModalBody.tsx | 3 ++- src/components/input/Input.tsx | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/(protected)/_components/modal/word/ModalBody.tsx b/src/app/(protected)/_components/modal/word/ModalBody.tsx index 2df461f..baa11a1 100644 --- a/src/app/(protected)/_components/modal/word/ModalBody.tsx +++ b/src/app/(protected)/_components/modal/word/ModalBody.tsx @@ -12,7 +12,7 @@ type ModalBodyProps = { | "usage" | "memo" | "bookmarked", - value: string + value: string, ) => void; form: WordCreateInput | WordUpdateInput; @@ -36,6 +36,7 @@ export default function ModalBody({ <> updateField("expression", e.target.value)} diff --git a/src/components/input/Input.tsx b/src/components/input/Input.tsx index 6ad2c28..f2858ea 100644 --- a/src/components/input/Input.tsx +++ b/src/components/input/Input.tsx @@ -12,6 +12,7 @@ type InputProps = { placeholder?: string; className?: string; errors?: string; + autoFocus?: boolean; }; export default function Input({ @@ -25,11 +26,13 @@ export default function Input({ onClick, errors, className, + autoFocus, }: InputProps) { return (