react-bidirectional-infinite-scroll icon indicating copy to clipboard operation
react-bidirectional-infinite-scroll copied to clipboard

Fix null error on removing children

Open jakeane opened this issue 3 years ago • 0 comments

Discovered issue when children are removed from the component. Results in this error

Uncaught TypeError: Cannot read property 'offsetTop' of null
    at _default._this.handleVerticalScroll (component.js:72)
    at _this.handleScroll (component.js:94)

Now null checks are performed in the problematic sections. This will avoid an error being raised unnecessarily.

Also, I removed the engine requirements, as they seem inconsequential.

jakeane avatar Jul 22 '21 04:07 jakeane