mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-11 14:21:56 +08:00
force scroll to bottom after submission
This commit is contained in:
@@ -528,6 +528,10 @@ function ConversationCard(props) {
|
||||
} catch (e) {
|
||||
updateAnswer(e, false, 'error')
|
||||
}
|
||||
bodyRef.current.scrollTo({
|
||||
top: bodyRef.current.scrollHeight,
|
||||
behavior: 'instant',
|
||||
})
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user