force scroll to bottom after submission

This commit is contained in:
josc146
2023-11-02 21:41:33 +08:00
parent 84dfdde8c0
commit 3d08919798
@@ -528,6 +528,10 @@ function ConversationCard(props) {
} catch (e) {
updateAnswer(e, false, 'error')
}
bodyRef.current.scrollTo({
top: bodyRef.current.scrollHeight,
behavior: 'instant',
})
}}
/>
</div>