diff --git a/src/components/content/content.ts b/src/components/content/content.ts index 59b526791d6..3fd88d5816b 100644 --- a/src/components/content/content.ts +++ b/src/components/content/content.ts @@ -460,6 +460,8 @@ export class Content extends Ion { this._tabbarPlacement = null; let ele: HTMLElement = this._elementRef.nativeElement; + if (!ele) return; + let parentEle: HTMLElement = ele.parentElement; let computedStyle: any; @@ -511,6 +513,8 @@ export class Content extends Ion { let newVal: number; let scrollEle = this._scrollEle; + if (!scrollEle) return; + // only write when it has changed if (this._fullscreen) { // adjust the content with padding, allowing content to scroll under headers/footers