test(ivy): re-enable passing upgrade tests (#28030)

PR Close #28030
This commit is contained in:
Kara Erickson
2019-01-09 15:29:08 -08:00
committed by Andrew Kushnir
parent 11325bad4a
commit 8934b736c8
2 changed files with 98 additions and 106 deletions

View File

@ -513,11 +513,11 @@ function getRenderParent(tNode: TNode, currentView: LView): RElement|null {
// We've got a parent which is an element in the current view. We just need to verify if the
// parent element is not a component. Component's content nodes are not inserted immediately
// because they will be projected, and so doing insert at this point would be wasteful.
// Since the projection would than move it to its final destination.
if (!(parent.flags & TNodeFlags.isComponent)) {
return getNativeByTNode(parent, currentView) as RElement;
} else {
// Since the projection would then move it to its final destination.
if (parent.flags & TNodeFlags.isComponent) {
return null;
} else {
return getNativeByTNode(parent, currentView) as RElement;
}
}
}