Skip to content

Commit 2d19308

Browse files
committed
fix(tabs): fix preloadTabs null element reference
Closes #7109
1 parent 55a5e83 commit 2d19308

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/content/content.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,8 @@ export class Content extends Ion {
460460
this._tabbarPlacement = null;
461461

462462
let ele: HTMLElement = this._elementRef.nativeElement;
463+
if (!ele) return;
464+
463465
let parentEle: HTMLElement = ele.parentElement;
464466
let computedStyle: any;
465467

@@ -511,6 +513,8 @@ export class Content extends Ion {
511513
let newVal: number;
512514
let scrollEle = this._scrollEle;
513515

516+
if (!scrollEle) return;
517+
514518
// only write when it has changed
515519
if (this._fullscreen) {
516520
// adjust the content with padding, allowing content to scroll under headers/footers

0 commit comments

Comments
 (0)