scrollToBottom when opening chat page
This commit is contained in:
parent
1d08719645
commit
29c8a27eed
@ -65,6 +65,7 @@ const ChatPanel: FC = observer(() => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (inputRef.current)
|
if (inputRef.current)
|
||||||
inputRef.current.style.maxHeight = '16rem';
|
inputRef.current.style.maxHeight = '16rem';
|
||||||
|
scrollToBottom();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user