ggordan / react-infinite-grid

A React component which renders a grid of elements.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read property 'getBoundingClientRect' of undefined

adriagil opened this issue · comments

So installing the latest version throws me that error.
The issue here as far a I can debug is due to

this.refs.grid //undefined

and the error happens on getGridRect method

return this.refs.grid.getBoundingClientRect(); //undefined

Hi @ggordan , This library is ideal for my usecase but I am getting the same error.

I'm getting exactly the same error

I wonder if this project is still being maintained? this issue has bee posted for a long time.

G

Same here. A year later the issue is still here. The project is most likely abandoned.