react-twitter-embed icon indicating copy to clipboard operation
react-twitter-embed copied to clipboard

Cannot read property 'parentNode' of undefined

Open randallkanna opened this issue 4 years ago • 0 comments

I'm getting an error when using react twitter embed

Cannot read property 'parentNode' of undefined

Code it fails on: if (this.props.autoHeight) { options.height = this.refs.embedContainer.parentNode.offsetHeight }

I tried removing the auto height that we passed in but users are still seeing the bug. Any ideas?

randallkanna avatar May 07 '20 18:05 randallkanna