mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-14 04:15:35 +00:00
disables chat scroll when nav state is modified
This commit is contained in:
1 parent
a748f92c7c
commit
f703b89c00
1 file changed
+3
-2
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user