From d60c9a33d836c9c0c4f50043414a166f90d663bd Mon Sep 17 00:00:00 2001 From: MerganThePirate Date: Mon, 15 Jun 2020 08:25:26 -0700 Subject: [PATCH] Fixed bug from issue #5191 --- src/dom/AddToDOM.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dom/AddToDOM.js b/src/dom/AddToDOM.js index a201dcf7d..f3c468bb4 100644 --- a/src/dom/AddToDOM.js +++ b/src/dom/AddToDOM.js @@ -33,7 +33,7 @@ var AddToDOM = function (element, parent) target = parent; } } - else if (element.parentElement) + else if (element.parentElement || parent === null) { return element; }