fix(ivy): don't cache render parent on LContainer to support ngUpgrade (#28011)

PR Close #28011
This commit is contained in:
Pawel Kozlowski
2019-01-09 14:20:19 +01:00
committed by Andrew Kushnir
parent 1f904bffbc
commit 6beeb76ac0
2 changed files with 110 additions and 119 deletions

View File

@ -52,9 +52,9 @@ export function getLContainer(tNode: TViewNode, embeddedView: LView): LContainer
* Retrieves render parent for a given view.
* Might be null if a view is not yet attached to any container.
*/
export function getContainerRenderParent(tViewNode: TViewNode, view: LView): RElement|null {
function getContainerRenderParent(tViewNode: TViewNode, view: LView): RElement|null {
const container = getLContainer(tViewNode, view);
return container ? container[RENDER_PARENT] : null;
return container ? nativeParentNode(view[RENDERER], container[NATIVE]) : null;
}
const enum WalkTNodeTreeAction {