set toggleShowDetails() to scroll into the viewport using anchors
This commit is contained in:
		
							parent
							
								
									ac91d814d6
								
							
						
					
					
						commit
						8ccdf3973c
					
				@ -192,6 +192,7 @@ export class BlockComponent implements OnInit, OnDestroy {
 | 
			
		||||
        relativeTo: this.route,
 | 
			
		||||
        queryParams: { showDetails: false },
 | 
			
		||||
        queryParamsHandling: 'merge',
 | 
			
		||||
        fragment: 'block'
 | 
			
		||||
      });
 | 
			
		||||
    } else {
 | 
			
		||||
      this.showDetails = true;
 | 
			
		||||
@ -199,6 +200,7 @@ export class BlockComponent implements OnInit, OnDestroy {
 | 
			
		||||
        relativeTo: this.route,
 | 
			
		||||
        queryParams: { showDetails: true },
 | 
			
		||||
        queryParamsHandling: 'merge',
 | 
			
		||||
        fragment: 'details'
 | 
			
		||||
      });
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user