Skip to content

Commit f53115a

Browse files
committed
Fix scrolling to bottom problem
1 parent 2bfef70 commit f53115a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎lightrag_webui/src/features/RetrievalTesting.tsx‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ export default function RetrievalTesting() {
6060

6161
// Add messages to chatbox
6262
setMessages([...prevMessages, userMessage, assistantMessage])
63+
64+
// Force scroll to bottom after messages are rendered
65+
setTimeout(() => {
66+
scrollToBottom(true)
67+
}, 0)
6368

6469
// Clear input and set loading
6570
setInputValue('')

0 commit comments

Comments
 (0)