Fix sticky polyfill after moving it to StickySidebar component

This commit is contained in:
Roman Hotsiy 2017-11-20 18:18:44 +02:00
parent 8d84fa669c
commit 95f82b5e87
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -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() {