Fix savings chat autoscroll
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
AgentPromptInput,
|
||||
type AgentChatMessage,
|
||||
} from "@/components/chat/AgentChat";
|
||||
import { scrollConversationToBottom } from "@/components/chat/agentChatModel";
|
||||
import { ChatHistory, type ChatHistoryItem } from "@/components/chat/ChatHistory";
|
||||
import { toast } from "sonner";
|
||||
|
||||
@@ -278,7 +279,7 @@ export function SavingsChatPage() {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
listRef.current?.lastElementChild?.scrollIntoView({ behavior: "smooth" });
|
||||
scrollConversationToBottom(listRef.current);
|
||||
}, [displayMessages.length, activeSessionId]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user