Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit fd5f82b

Browse files
authored
Merge pull request #27 from makotot/fix-undefined-error
fix undefined err
2 parents 5b1c800 + d916587 commit fd5f82b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/lib/Scrollspy.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class Scrollspy extends React.Component {
6161
const isScrolled = (document.documentElement.scrollTop || document.body.scrollTop) > 0
6262

6363
// https://github.com/makotot/react-scrollspy/pull/26#issue-167413769
64-
if (this._isAtBottom() && this._isInView(currentContent) && !isInView && isLastItem && iscrolled) {
64+
if (this._isAtBottom() && this._isInView(currentContent) && !isInView && isLastItem && isScrolled) {
6565
elemsOutView.pop()
6666
elemsOutView.push(...elemsInView)
6767
elemsInView = [currentContent]

0 commit comments

Comments
 (0)