Skip to content

Commit 3d08919

Browse files
committed
force scroll to bottom after submission
1 parent 84dfdde commit 3d08919

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/ConversationCard/index.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,10 @@ function ConversationCard(props) {
528528
} catch (e) {
529529
updateAnswer(e, false, 'error')
530530
}
531+
bodyRef.current.scrollTo({
532+
top: bodyRef.current.scrollHeight,
533+
behavior: 'instant',
534+
})
531535
}}
532536
/>
533537
</div>

0 commit comments

Comments
 (0)