scrollToBottom when opening chat page
This commit is contained in:
@@ -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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user