From ee2bc5d1e399e47a35b81d5f3be659cc79cfb0c0 Mon Sep 17 00:00:00 2001 From: "Suyash K." Date: Thu, 10 Oct 2024 18:10:54 +0530 Subject: [PATCH] fix: focus input on emoji --- src/components/resusable/ChatInput.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/resusable/ChatInput.tsx b/src/components/resusable/ChatInput.tsx index 0e70ddf..c5f02e8 100644 --- a/src/components/resusable/ChatInput.tsx +++ b/src/components/resusable/ChatInput.tsx @@ -38,6 +38,7 @@ export default function ChatInput({ function handleShowEmoji() { setShowEmoji(!showEmoji); + message.current?.focus(); } function onEmojiChoose(emoji: string) {