We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2dd8892 + 5c6fc28 commit 5fabdb3Copy full SHA for 5fabdb3
src/ReactFC.js
@@ -264,10 +264,10 @@ class ReactFC extends React.Component {
264
const currentOptions = this.resolveChartOptions(this.props);
265
const events = {};
266
// passing the actual DOM element
267
- if (this.containerRef.current) {
+ if (this.containerRef.current && this.props.renderInShadowDom) {
268
currentOptions.renderAt = this.containerRef.current;
269
} else {
270
- currentOptions.renderAt = this.containerId; // Fall back to ID
+ currentOptions.renderAt = this.containerId;
271
}
272
273
Object.keys(this.props).forEach(value => {
0 commit comments