From 583f6383b27c7fb9afbebaa3ae1032d0f6f7daf9 Mon Sep 17 00:00:00 2001 From: somin2352 Date: Thu, 21 Aug 2025 13:04:52 +0900 Subject: [PATCH] =?UTF-8?q?modify:=20=EB=AA=A8=EB=B0=94=EC=9D=BC=20?= =?UTF-8?q?=ED=82=A4=EB=B3=B4=EB=93=9C=20=EB=AC=B8=EC=A0=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 키보드 높이 계산 --- src/components/ChattingPage/ChatInput.tsx | 8 +--- src/pages/chatting-page/chatting-room.tsx | 54 +++++++++-------------- 2 files changed, 23 insertions(+), 39 deletions(-) diff --git a/src/components/ChattingPage/ChatInput.tsx b/src/components/ChattingPage/ChatInput.tsx index 70c6130..9e6003e 100644 --- a/src/components/ChattingPage/ChatInput.tsx +++ b/src/components/ChattingPage/ChatInput.tsx @@ -6,14 +6,12 @@ interface ChatInputProps { value: string; onChange: Dispatch>; onSubmit: () => void; - onFocus: () => void; - onBlur: () => void; } -const ChatInput = ({ value, onChange, onSubmit, onFocus, onBlur }: ChatInputProps) => { +const ChatInput = ({ value, onChange, onSubmit }: ChatInputProps) => { return (
{ e.preventDefault(); onSubmit(); @@ -29,8 +27,6 @@ const ChatInput = ({ value, onChange, onSubmit, onFocus, onBlur }: ChatInputProp className="w-full font-[pretendard] h-[36px] bg-[#F1F1F1] rounded-[20px] px-3 py-2.5" value={value} onChange={e => onChange(e.target.value)} - onFocus={onFocus} - onBlur={onBlur} />