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

committed by
Kara Erickson

parent
0b998844c8
commit
c5737f4a19
@ -671,7 +671,12 @@ function getFirstNativeNode(lView: LView, tNode: TNode | null): RNode|null {
|
||||
const lContainer = lView[tNode.index];
|
||||
if (lContainer.length > CONTAINER_HEADER_OFFSET) {
|
||||
const firstView = lContainer[CONTAINER_HEADER_OFFSET];
|
||||
return getFirstNativeNode(firstView, firstView[TVIEW].firstChild);
|
||||
const firstTNodeOfView = firstView[TVIEW].firstChild;
|
||||
if (firstTNodeOfView !== null) {
|
||||
return getFirstNativeNode(firstView, firstTNodeOfView);
|
||||
} else {
|
||||
return lContainer[NATIVE];
|
||||
}
|
||||
} else {
|
||||
return lContainer[NATIVE];
|
||||
}
|
||||
|
Reference in New Issue
Block a user