It doesn't work when ancestor element has overflow-x: hidden
I found the issue it doesn't work when ancestor element like #container has the style overflow-x: hidden.
Please see this demo: https://wonderful-minsky-c230e6.netlify.com/ (source)
Can I help me to solve this issue?
This looks like a bug to me. Would you be willing to submit a PR fixing this? As a workaround, you can set the scrollableAncestor prop to window.
@sundaycrafts I've run into same issue. @trotzig Your workaround helps, thank you!
Should we have a check for this.scrollableAncestor.scrollHeight===this.scrollableAncestor.clientHeight, which means the Ancestor Elements totally can't scroll ?
Any update on this? Just spent an hour trying to understand why this library wasn't working before I found this issue.