From f06291452d80791bb30de93b48591bc1f7d1e6e2 Mon Sep 17 00:00:00 2001 From: Himanshi-Mirosoft Date: Mon, 16 Dec 2024 19:08:54 +0530 Subject: [PATCH] Update Chat.tsx --- frontend/src/pages/chat/Chat.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/chat/Chat.tsx b/frontend/src/pages/chat/Chat.tsx index 29f1f41f..521621fa 100644 --- a/frontend/src/pages/chat/Chat.tsx +++ b/frontend/src/pages/chat/Chat.tsx @@ -825,11 +825,11 @@ const Chat = ({ type = ChatType.Browse }: Props) => { }, [AUTH_ENABLED]) useLayoutEffect(() => { - chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'smooth' }) + chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'auto' }) }, [showLoadingMessage, processMessages]) useEffect(() => { - chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'smooth' }) + chatMessageStreamEnd.current?.scrollIntoView({ behavior: 'auto' }) }, [messages]) const onShowCitation = (citation: Citation) => {