Touch up footer.
This commit is contained in:
@@ -19,7 +19,7 @@ export default function useSticky({ scrollElement = document, defaultSticky = fa
|
||||
return () => {
|
||||
scrollElement.removeEventListener('scroll', handleScroll, true);
|
||||
};
|
||||
}, [ref, setIsSticky]);
|
||||
}, [ref, setIsSticky, scrollElement]);
|
||||
|
||||
return { ref, isSticky };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user