prevent scrolling to top on chat creation (#189)
This commit is contained in:
parent
be90a40427
commit
c368a0967c
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ export function Chat({ id, initialMessages, className }: ChatProps) {
|
|||
},
|
||||
onFinish() {
|
||||
if (!path.includes('chat')) {
|
||||
router.push(`/chat/${id}`, { shallow: true })
|
||||
router.push(`/chat/${id}`, { shallow: true, scroll: false })
|
||||
router.refresh()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue