Skip to content

Commit 7965f71

Browse files
committed
[Fix] Input 컴포넌트 타입 에러 fix
1 parent 0a424c9 commit 7965f71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/input/Input.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ interface GeneralInputProps {
1111
onChange?: (value: string) => void;
1212
value?: string;
1313
readOnly?: boolean; //입력방지 추가
14+
onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
1415
}
1516

1617
interface SignInputProps extends Omit<GeneralInputProps, "type"> {
@@ -109,6 +110,7 @@ export default function Input(props: InputProps) {
109110
);
110111
setIsInvalid(true);
111112
}}
113+
onKeyDown={rest.onKeyDown}
112114
className={clsx(
113115
"peer flex h-[50px] w-full max-w-[520px] px-2 sm:px-4 py-2 rounded-lg transition-colors duration-200",
114116
"border border-[var(--color-gray3)] focus:border-[var(--primary)] focus:ring-0 focus:outline-none",

0 commit comments

Comments
 (0)