mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +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;
|
||||
|
||||
componentDidMount() {
|
||||
stickyfill.add(this.refs['sticky-children']);
|
||||
stickyfill.add(this.stickyElement);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
stickyfill.remove(this.refs['sticky-children']);
|
||||
stickyfill.remove(this.stickyElement);
|
||||
}
|
||||
|
||||
get scrollYOffset() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user