diff --git a/nativescript-angular/renderer.ts b/nativescript-angular/renderer.ts index bc6f8a5f8..c91d0abc5 100644 --- a/nativescript-angular/renderer.ts +++ b/nativescript-angular/renderer.ts @@ -31,7 +31,8 @@ export class NativeScriptRenderer extends Renderer2 { } @profile - insertBefore(parent: NgView, newChild: NgView, { previous, next }: ElementReference): void { + insertBefore(parent: NgView, newChild: NgView, refChild: NgView | ElementReference): void { + let { previous, next } = refChild instanceof View ? this.nextSibling(refChild) : refChild; if (NativeScriptDebug.isLogEnabled()) { NativeScriptDebug.rendererLog(`NativeScriptRenderer.insertBefore child: ${newChild} ` + `parent: ${parent} previous: ${previous} next: ${next}`); } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy