forked from open-webui/open-webui
		
	Merge pull request #941 from jannikstdl/autofocus-chat
fix: added focus selector
This commit is contained in:
		
						commit
						f347d664ac
					
				
					 4 changed files with 16 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -293,6 +293,9 @@
 | 
			
		|||
	};
 | 
			
		||||
 | 
			
		||||
	onMount(() => {
 | 
			
		||||
		const chatInput = document.getElementById('chat-textarea');
 | 
			
		||||
		window.setTimeout(() => chatInput?.focus(), 0);
 | 
			
		||||
 | 
			
		||||
		const dropZone = document.querySelector('body');
 | 
			
		||||
 | 
			
		||||
		const onDragOver = (e) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue