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.
1 parent c586054 commit 736378eCopy full SHA for 736378e
1 file changed
src/widget.ts
@@ -72,7 +72,7 @@ class ReactWidgetImpl<
72
if (this.root === undefined || this.containerElement === undefined) {
73
this.containerElement = document.createElement('div');
74
this.root = ReactDom.createRoot(this.containerElement);
75
- this.connectionObserver.observe(this.parentDomNode);
+ this.connectionObserver?.observe?.(this.parentDomNode ?? this.containerElement);
76
}
77
this.domNodes.push(this.containerElement);
78
nextSibling === null ? parent.append(this.containerElement) : nextSibling.before(this.containerElement);
0 commit comments