mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-10-31 15:57:30 +03:00 
			
		
		
		
	Don't initial scroll if hash is empty
This commit is contained in:
		
							parent
							
								
									0f580eeed0
								
							
						
					
					
						commit
						4f79d4950a
					
				|  | @ -45,10 +45,10 @@ export class MenuService { | ||||||
|       if (!this.tasks.empty) { |       if (!this.tasks.empty) { | ||||||
|         this.tasks.start(this.activeCatIdx, this.activeMethodIdx); |         this.tasks.start(this.activeCatIdx, this.activeMethodIdx); | ||||||
|         this.scrollService.setStickElement(this.getCurrentMethodEl()); |         this.scrollService.setStickElement(this.getCurrentMethodEl()); | ||||||
|         this.scrollToActive(); |         if (hash) this.scrollToActive(); | ||||||
|         this.appState.stopLoading(); |         this.appState.stopLoading(); | ||||||
|       } else { |       } else { | ||||||
|         this.scrollToActive(); |         if (hash) this.scrollToActive(); | ||||||
|       } |       } | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user