mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-02 03:40:17 +00:00
disables chat scroll when nav state is modified
This commit is contained in:
parent
a748f92c7c
commit
f703b89c00
@ -19,8 +19,9 @@ export default function Conversation() {
|
||||
const endMessageRef = useRef<HTMLDivElement>(null);
|
||||
const inputRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
useEffect(() =>
|
||||
endMessageRef?.current?.scrollIntoView({ behavior: 'smooth' }),
|
||||
useEffect(
|
||||
() => endMessageRef?.current?.scrollIntoView({ behavior: 'smooth' }),
|
||||
[messages],
|
||||
);
|
||||
|
||||
const handleQuestion = (question: string) => {
|
||||
|
Loading…
Reference in New Issue
Block a user