From: Ajay Bura Date: Mon, 13 Dec 2021 14:08:11 +0000 (+0530) Subject: Fix hide auto fill suggestions on msg send X-Git-Tag: v1.6.0~4 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=46dd50a744bbc4e7a6dd2963646e9c67f7664e24;p=rainny.git Fix hide auto fill suggestions on msg send Signed-off-by: Ajay Bura --- 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;