Browse Source
			
			
			fileserver: Prevent focusing filter from scrolling on page load (#4393)
			
			
				master
			
			
		 
		
			
				
					
						 Klaus Helenius
					
					4 years ago
						Klaus Helenius
					
					4 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
1 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					modules/caddyhttp/fileserver/browsetpl.go
				
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -430,7 +430,7 @@ footer { | 
			
		
	
		
			
				
					|  |  |  | 		</footer> | 
			
		
	
		
			
				
					|  |  |  | 		<script> | 
			
		
	
		
			
				
					|  |  |  | 			var filterEl = document.getElementById('filter'); | 
			
		
	
		
			
				
					|  |  |  | 			filterEl.focus(); | 
			
		
	
		
			
				
					|  |  |  | 			filterEl.focus({ preventScroll: true }); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 			function initFilter() { | 
			
		
	
		
			
				
					|  |  |  | 				if (!filterEl.value) { | 
			
		
	
	
		
			
				
					|  |  | 
 |