Skip to content

Commit 12c04bc

Browse files
committed
fixup! refactor(core): implement ɵɵforeignComponent instruction
1 parent c8cee3b commit 12c04bc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/render3/dom_node_manipulation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function createElementNode(
4646
*/
4747
export function nativeInsertBefore(
4848
renderer: Renderer,
49-
parent: RElement,
49+
parent: RNode,
5050
child: RNode,
5151
beforeNode: RNode | null,
5252
isMove: boolean,

packages/core/src/render3/instructions/foreign_component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export function ɵɵforeignComponent(
7070

7171
// 6. Insert the returned nodes into the foreign view, between its head and tail comment anchors.
7272
const tail = viewRef.tail as RNode;
73-
const parent = tail.parentElement;
73+
const parent = tail.parentNode;
7474
if (parent) {
7575
for (let i = 0; i < nodes.length; i++) {
7676
nativeInsertBefore(renderer, parent, nodes[i], tail, false);

0 commit comments

Comments
 (0)