S Cotterill
S Cotterill
I'll re-write this bit. Wrote it in a bit of a rush and it's really not clear.
I am also having this issue attempting to verify a style of `translate: 0%` on a matched element. in my case, ``` expect(getByTestId(container, 'slider-container')).toHaveStyle(`translate: 0%`) ``` will match, but so...
@MatthewHerbst > Only works when the waypoint is below visible viewport after the first onEnter. The `div` waypoints are always within the visible viewport after a page change.
> If you inspect the waypoint div (using developer tools in the browser), is it in the viewport after having fired `onLeave`? Yes, and moving it in and out of...
> I wonder if the wrong `scrollableAncestor` is picked up? Can you check the `debug` output to make sure that this property is referencing the right element in the DOM?...
When it leaves I intend to use `onLeave` to add `css` classes to other elements in the page (to fix the sidebar to the side of the page etc), and...
Initially the JSX was: ```jsx ``` Changed it to: ```jsx ``` The results are the same, with and without `scrollableAncestor={window}`