From 4e1ae2e9b915e6b608a42017cc3adb25c7bedede Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Wed, 10 Apr 2019 08:24:05 -0400 Subject: [PATCH] fix(): add undefined and iOS checks when running iOS 12.2 scrolling patches (#1008) * add undef check * whitespace --- src/navigation/nav-controller-base.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/navigation/nav-controller-base.ts b/src/navigation/nav-controller-base.ts index 1e65cfe77..86b7753c6 100644 --- a/src/navigation/nav-controller-base.ts +++ b/src/navigation/nav-controller-base.ts @@ -770,8 +770,13 @@ export class NavControllerBase extends Ion implements NavController { * be re-enabled unless there * is some kind of CSS reflow triggered */ - if (enteringView.getIONContentRef()) { - const platform = this.plt; + const platform = this.plt; + if ( + enteringView && + enteringView.getIONContentRef && + enteringView.getIONContentRef() && + platform.is('ios') + ) { platform.timeout(() => { platform.raf(() => { const content = enteringView.getIONContentRef().nativeElement;