angular-three 1.9.0 → 1.9.2
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.
|
@@ -2134,13 +2134,16 @@ class NgtRenderer {
|
|
|
2134
2134
|
if (cRS[2 /* NgtRendererClassId.injectedParent */]) {
|
|
2135
2135
|
if (is.ref(cRS[2 /* NgtRendererClassId.injectedParent */])) {
|
|
2136
2136
|
cRS[2 /* NgtRendererClassId.injectedParent */].$.pipe(take(1)).subscribe((val) => {
|
|
2137
|
-
|
|
2137
|
+
if (val !== parent) {
|
|
2138
|
+
this.appendChild(val, newChild);
|
|
2139
|
+
}
|
|
2138
2140
|
});
|
|
2141
|
+
return;
|
|
2139
2142
|
}
|
|
2140
|
-
else {
|
|
2143
|
+
else if (parent !== cRS[2 /* NgtRendererClassId.injectedParent */]) {
|
|
2141
2144
|
this.appendChild(cRS[2 /* NgtRendererClassId.injectedParent */], newChild);
|
|
2145
|
+
return;
|
|
2142
2146
|
}
|
|
2143
|
-
return;
|
|
2144
2147
|
}
|
|
2145
2148
|
this.store.setParent(newChild, parent);
|
|
2146
2149
|
this.store.addChild(parent, newChild);
|