From 95f82b5e8709071853b372757fec8fd5e6f3842a Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 20 Nov 2017 18:18:44 +0200 Subject: [PATCH] Fix sticky polyfill after moving it to StickySidebar component --- src/components/StickySidebar/StickySidebar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/StickySidebar/StickySidebar.tsx b/src/components/StickySidebar/StickySidebar.tsx index 7c5f41c3..7668083e 100644 --- a/src/components/StickySidebar/StickySidebar.tsx +++ b/src/components/StickySidebar/StickySidebar.tsx @@ -31,11 +31,11 @@ export class StickySidebar extends ComponentWithOptions { 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() {