@stemy/ngx-utils 19.5.3 → 19.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1949,7 +1949,10 @@ class LoaderUtils {
1949
1949
  }
1950
1950
  static loadElement(src, parent, setup) {
1951
1951
  const promises = LoaderUtils.promises;
1952
- parent = parent || document.body;
1952
+ parent = parent || document;
1953
+ if (parent == document) {
1954
+ parent = document.body;
1955
+ }
1953
1956
  let { elem, promise } = promises[src] || {};
1954
1957
  if (elem) {
1955
1958
  if (parent === elem.parentElement)