mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	scroll to top when searching again
This commit is contained in:
		
							parent
							
								
									659cd3e9d5
								
							
						
					
					
						commit
						93be4e98d5
					
				@ -41,6 +41,7 @@ export class SearchComponent implements OnInit {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  ngOnInit(): void {
 | 
					  ngOnInit(): void {
 | 
				
			||||||
    this.route.queryParamMap.subscribe(paramMap => {
 | 
					    this.route.queryParamMap.subscribe(paramMap => {
 | 
				
			||||||
 | 
					      window.scrollTo(0, 0)
 | 
				
			||||||
      this.query = paramMap.get('query')
 | 
					      this.query = paramMap.get('query')
 | 
				
			||||||
      this.more_like = paramMap.has('more_like') ? +paramMap.get('more_like') : null
 | 
					      this.more_like = paramMap.has('more_like') ? +paramMap.get('more_like') : null
 | 
				
			||||||
      if (this.more_like) {
 | 
					      if (this.more_like) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user