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