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 'offsetWidth' of undefined #118

Closed
nklijia opened this issue Aug 11, 2016 · 3 comments
Closed

Cannot read property 'offsetWidth' of undefined #118

nklijia opened this issue Aug 11, 2016 · 3 comments

Comments

@nklijia
Copy link
Contributor

nklijia commented Aug 11, 2016

I am using the makeWidthFlexible() funciton to make the plot auto updating the size.
But many times, I am getting this error
"Cannot read property 'offsetWidth' of undefined"

This error is from this line
https://github.com/uber/react-vis/blob/master/src/lib/make-vis-flexible.js#L115

@salincakli
Copy link

getDOMNode() was replaced by reactDOM.findDOMNode with React v 0.15

@chrisirhc
Copy link
Contributor

Looks like this can happen when the containerElement isn't found in the DOM so there's an additional check needed there.

@bulyonov
Copy link
Contributor

Resolving this issue, since #120 was merged in. The fix will be on the next release (0.5)

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

4 participants