Fix hide auto fill suggestions on msg send
authorAjay Bura <ajbura@gmail.com>
Mon, 13 Dec 2021 14:08:11 +0000 (19:38 +0530)
committerAjay Bura <ajbura@gmail.com>
Mon, 13 Dec 2021 14:08:11 +0000 (19:38 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
src/app/organisms/room/RoomViewInput.jsx

index ba1101437c86bd83ca2ed9fabc350bc1d840dd00..94e5c8236ab8e984f9ad14128aad93bb6c5703a2 100644 (file)
@@ -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;