twobin / twobin/react-lazyload

Lazy loading is not working if container has 'overflow-x: hidden' style

Open
#136 10 comments 8 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
485
PR merge metrics
No merged PRs in 30d

Description

Hi guys,
I have container with the following styles:
`
height: 100%;
position:relative;
overflow: auto;
overflow-x: hidden;`

LazyLoad component is configured with `overflow={true}` property.
But Lazy loading is not working.

I assume this issue is related with `overflowRegex.test(overflowX)` condition [here](https://github.com/jasonslyvia/react-lazyload/blob/d4fde733e292637a1b67ea596257e706aeae3fd4/src/utils/scrollParent.js#L30)

Could you please check if this condition isn't superfluous.
Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.