Hack to force scroll to very bottom at mount. For #2500

This commit is contained in:
Gabe Kangas
2023-01-05 02:16:37 -08:00
parent 3620c2eb7d
commit 81c505d731
2 changed files with 21 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ export const ScrollToBotBtn: FC<Props> = ({ chatContainerRef, messages }) => (
onClick={() =>
chatContainerRef.current.scrollToIndex({
index: messages.length - 1,
behavior: 'smooth',
behavior: 'auto',
})
}
>