From 46dd50a744bbc4e7a6dd2963646e9c67f7664e24 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 ba11014..94e5c82 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;