Skip to content

Commit

Permalink
🎉 feat: merge doro
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Jan 1, 2024
1 parent 6967520 commit c54688c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/medium/src/components/modules/chat/chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export default function Chat() {

useLayoutEffect(() => {
requestAnimationFrame(() => {
window.scrollTo(0, document.body.scrollHeight)
requestAnimationFrame(() => {
window.scrollTo(0, document.body.scrollHeight)
})
})
}, [chats.length])

Expand Down

0 comments on commit c54688c

Please sign in to comment.