keep message focus
This commit is contained in:
		
							parent
							
								
									b7803cf4ba
								
							
						
					
					
						commit
						d14268b075
					
				|  | @ -39,7 +39,7 @@ export const ChatInput: FC<Props> = ({ onSend, messageIsStreaming, model }) => { | ||||||
|     onSend({ role: "user", content }); |     onSend({ role: "user", content }); | ||||||
|     setContent(""); |     setContent(""); | ||||||
| 
 | 
 | ||||||
|     if (textareaRef && textareaRef.current) { |     if (window.innerWidth < 640 && textareaRef && textareaRef.current) { | ||||||
|       textareaRef.current.blur(); |       textareaRef.current.blur(); | ||||||
|     } |     } | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue