From d9cdba23171cb89be925e6535f2cd76fd90e3f47 Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Mon, 13 Dec 2021 19:38:11 +0530 Subject: [PATCH] Fix hide auto fill suggestions on msg send Signed-off-by: Ajay Bura --- src/app/organisms/room/RoomViewInput.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/organisms/room/RoomViewInput.jsx b/src/app/organisms/room/RoomViewInput.jsx index ba110143..94e5c823 100644 --- a/src/app/organisms/room/RoomViewInput.jsx +++ b/src/app/organisms/room/RoomViewInput.jsx @@ -176,6 +176,7 @@ function RoomViewInput({ }, [roomId]); const sendMessage = async () => { + requestAnimationFrame(() => deactivateCmdAndEmit()); const msgBody = textAreaRef.current.value; if (roomsInput.isSending(roomId)) return; if (msgBody.trim() === '' && attachment === null) return;