1
0
Fork 0

Scroll chat on visibility change

This commit is contained in:
Pabloader 2026-04-09 11:03:13 +00:00
parent ddc1d00bc3
commit 74fbb5bee2
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ export const ChatPanel = ({ visible }: { visible: boolean }) => {
if (messagesRef.current) {
messagesRef.current.scrollTop = messagesRef.current.scrollHeight;
}
}, [chatOpen]);
}, [chatOpen, visible]);
useEffect(() => {
return () => {