Open randallkanna opened 4 years ago
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 }
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?
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?