You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh interesting, I see what's going on. What would you propose as a solution, a prop for a DOM node to listen to for scroll events? Like, scrollingNode with a default of window?
StickContainer add new propps scrollingNode(DOM node), or should use react createRef. I can also support a new Context Component prodivde scrolling node for StickyContainer.
I have the same problem. I need to set custom node for the StickyContainer, because in one of the cases my app works with scroll inner the div at the top level.
I'm submitting a ...
If you're reporting a bug, please provide a minimal demonstration of the problem
https://codesandbox.io/s/93xyo7z66o
https://github.com/captivationsoftware/react-sticky/blob/master/src/Container.js#L66 should support custom scroll container.
What is the current behavior?
Sticky does not work with inner scroll div
What is the expected or desired behavior?
Sticky does work with inner scroll div
Why do you want this? What use case do you have?
What is your environment?
Is there anything else I should know?
The text was updated successfully, but these errors were encountered: