yangdx
commited on
Commit
·
79e5aa7
1
Parent(s):
75016ae
Fix scrolling to bottom problem
Browse files
lightrag_webui/src/features/RetrievalTesting.tsx
CHANGED
@@ -60,6 +60,11 @@ export default function RetrievalTesting() {
|
|
60 |
|
61 |
// Add messages to chatbox
|
62 |
setMessages([...prevMessages, userMessage, assistantMessage])
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
// Clear input and set loading
|
65 |
setInputValue('')
|
|
|
60 |
|
61 |
// Add messages to chatbox
|
62 |
setMessages([...prevMessages, userMessage, assistantMessage])
|
63 |
+
|
64 |
+
// Force scroll to bottom after messages are rendered
|
65 |
+
setTimeout(() => {
|
66 |
+
scrollToBottom(true)
|
67 |
+
}, 0)
|
68 |
|
69 |
// Clear input and set loading
|
70 |
setInputValue('')
|