Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Cannot read property 'getBoundingClientRect' of null #32

Closed
petvas opened this issue Oct 18, 2019 · 1 comment
Closed

Cannot read property 'getBoundingClientRect' of null #32

petvas opened this issue Oct 18, 2019 · 1 comment

Comments

@petvas
Copy link

petvas commented Oct 18, 2019

I got this error message every time when I click on the page:

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
    at getComponentsSizes (index.es.js:348)
    at StateProvider.handleCalculateBounds (index.es.js:380)
    at StateProvider._this.handleStartPanning (index.es.js:941)
getComponentsSizes @ index.es.js:348
handleCalculateBounds @ index.es.js:380
StateProvider._this.handleStartPanning @ index.es.js:941
15:33:48.257 

When I tried to debug I added:
console.log("setWrapperComponent", wrapperComponent); to StateContext.js
and my console show:

setWrapperComponent <div>​…​</div>

and few seconds later:

setWrapperComponent null

I think when TransformWrapper added with array map and we change the array that can cause an issue. I can't reproduce the issue outside of our codebase.

@prc5
Copy link
Collaborator

prc5 commented Nov 5, 2019

Could you check if it's still a problem with a new version?

@mpyrc mpyrc closed this as completed in 67be295 Nov 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants