fix(ivy): properly insert views in front of views with an empty element container (#33647)
PR Close #33647
This commit is contained in:

committed by
Kara Erickson

parent
fc24a69a6b
commit
0b998844c8
@ -676,7 +676,12 @@ function getFirstNativeNode(lView: LView, tNode: TNode | null): RNode|null {
|
||||
return lContainer[NATIVE];
|
||||
}
|
||||
} else if (tNodeType === TNodeType.ElementContainer || tNodeType === TNodeType.IcuContainer) {
|
||||
return getFirstNativeNode(lView, tNode.child);
|
||||
const elIcuContainerChild = tNode.child;
|
||||
if (elIcuContainerChild !== null) {
|
||||
return getFirstNativeNode(lView, elIcuContainerChild);
|
||||
} else {
|
||||
return getNativeByTNode(tNode, lView);
|
||||
}
|
||||
} else {
|
||||
const componentView = findComponentView(lView);
|
||||
const componentHost = componentView[T_HOST] as TElementNode;
|
||||
|
Reference in New Issue
Block a user