Skip to content

TypeError: Cannot read property 'firstChild' of null #5

@greyvugrin

Description

@greyvugrin

Getting an error coming from line 37 of source:

<div ref={r => this.scrollingElement = r.firstChild}>

It seems like the ref is null.

Here is my implementation of it:

<ScrollLock>
       <div>
           <ul>
                { /* more stuff in here */ }
            </ul>
       </div>
</ScrollLock>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions