Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixes scrollListener accesses properties of null #280

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

snowkrebs
Copy link

@snowkrebs snowkrebs commented May 31, 2021

Thank you @qhuynh96 for the fix,

the change in this PR is already done in
#267

this PR is just copying the changes from /src to /dist
(this PR can be closed if 267 has been approved and merged)

@rajat-devslane
Copy link

@danbovey Any update on this pull request?

@@ -207,7 +215,8 @@ export default class InfiniteScroll extends Component {
}
} else if (this.props.isReverse) {
offset = parentNode.scrollTop;
} else {
} else if (el) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is else if needed? Isn't el a ref for this.scrollComponent?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants