Touch up footer.

This commit is contained in:
Mike Cao 2023-03-03 21:26:39 -08:00
parent 05f01cd09e
commit 3fc5f5151b
5 changed files with 26 additions and 29 deletions

View file

@ -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 };
}