Skip to content

Commit fe4f760

Browse files
committed
refac
1 parent 807b208 commit fe4f760

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/components/chat/Chat.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,10 @@
13221322
history.messages[messages.at(-1).id].childrenIds.push(userMessageId);
13231323
}
13241324
1325+
if (autoScroll) {
1326+
scrollToBottom();
1327+
}
1328+
13251329
// focus on chat input
13261330
const chatInput = document.getElementById('chat-input');
13271331
chatInput?.focus();

0 commit comments

Comments
 (0)