From 6d559eda2f0d2f4101ee675a4dc6798af84a50f3 Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Tue, 5 Mar 2024 10:26:19 +0530 Subject: [PATCH] Add onCompositionStart and onCompositionEnd event handlers to message input --- src/components/Sidepanel/Chat/form.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Sidepanel/Chat/form.tsx b/src/components/Sidepanel/Chat/form.tsx index f567d9e..fde5a29 100644 --- a/src/components/Sidepanel/Chat/form.tsx +++ b/src/components/Sidepanel/Chat/form.tsx @@ -179,6 +179,8 @@ export const SidepanelForm = ({ dropedFile }: Props) => { rows={1} style={{ minHeight: "60px" }} tabIndex={0} + onCompositionStart={() => setTyping(true)} + onCompositionEnd={() => setTyping(false)} placeholder="Type a message..." {...form.getInputProps("message")} />