Add onCompositionStart and onCompositionEnd event handlers to message input

This commit is contained in:
n4ze3m 2024-03-05 10:26:19 +05:30
parent 8778129fb6
commit 6d559eda2f

View File

@ -179,6 +179,8 @@ export const SidepanelForm = ({ dropedFile }: Props) => {
rows={1} rows={1}
style={{ minHeight: "60px" }} style={{ minHeight: "60px" }}
tabIndex={0} tabIndex={0}
onCompositionStart={() => setTyping(true)}
onCompositionEnd={() => setTyping(false)}
placeholder="Type a message..." placeholder="Type a message..."
{...form.getInputProps("message")} {...form.getInputProps("message")}
/> />