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 0bdaa95 commit 30dc545Copy full SHA for 30dc545
src/widget.js
@@ -275,7 +275,7 @@ class Widget {
275
this.parentContainerEl = element;
276
} else if (typeof element === "string") {
277
this.parentContainerEl = document.getElementById(element);
278
- if (!parent) {
+ if (!this.parentContainerEl) {
279
throw new Error("Failed to find target DOM element with id=\"" + element + "\"");
280
}
281
} else if (element) {
0 commit comments