mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-04 09:47:31 +03:00 
			
		
		
		
	Fix sticky polyfill after moving it to StickySidebar component
This commit is contained in:
		
							parent
							
								
									8d84fa669c
								
							
						
					
					
						commit
						95f82b5e87
					
				| 
						 | 
					@ -31,11 +31,11 @@ export class StickySidebar extends ComponentWithOptions<StickySidebarProps> {
 | 
				
			||||||
  stickyElement: Element;
 | 
					  stickyElement: Element;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  componentDidMount() {
 | 
					  componentDidMount() {
 | 
				
			||||||
    stickyfill.add(this.refs['sticky-children']);
 | 
					    stickyfill.add(this.stickyElement);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  componentWillUnmount() {
 | 
					  componentWillUnmount() {
 | 
				
			||||||
    stickyfill.remove(this.refs['sticky-children']);
 | 
					    stickyfill.remove(this.stickyElement);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  get scrollYOffset() {
 | 
					  get scrollYOffset() {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user