react-lazyload
react-lazyload copied to clipboard
scrollContainer can't be set to a DOM node
The documentation specifies that scrollContainer can be set to either a queryselector string, or a DOM node, and the propTypes reflect this as well.
Currently, if anything other than a string is passed as the value of scrollContainer, the value is ignored.
An object should be accepted instead of only a string.
Addressed by #276 - Not yet merged
@twobin what about merge?
For what it's worth, the solution mostly worked, but it wasn't enough. Things still weren't loading as expected reliably enough for production and we scrapped it.
I can confirm that the scrollContainer mechanism only manage the query selector and not the DOM node as specified in docs. Using the query selector works for me.