diff --git a/packages/core/src/components/status-tap/status-tap.tsx b/packages/core/src/components/status-tap/status-tap.tsx index ad475f0a62..cec397a8be 100644 --- a/packages/core/src/components/status-tap/status-tap.tsx +++ b/packages/core/src/components/status-tap/status-tap.tsx @@ -30,9 +30,11 @@ export class StatusTap { return; } const scroll = el.closest('ion-scroll') as HTMLIonScrollElement; - (scroll as any).componentOnReady().then(() => { - this.dom.write(() => scroll.scrollToTop(this.duration)); - }); + if (scroll) { + (scroll as any).componentOnReady().then(() => { + this.dom.write(() => scroll.scrollToTop(this.duration)); + }); + } }); } }