Skip to content

Commit f5e4e18

Browse files
Fixes #132
1 parent 87d7416 commit f5e4e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default class Router extends VueRouter {
128128

129129
async restoreScroll(el: HTMLElement, key: string): Promise<void> {
130130
const ionContent = el.querySelector('ion-content');
131-
const scrollElement = ionContent && (await ionContent.getScrollElement());
131+
const scrollElement = ionContent && (await ionContent.getScrollElement()) || undefined;
132132
scrollElement?.scrollTo(this.scroll.get(key) || { top: 0, left: 0 });
133133
}
134134
}

0 commit comments

Comments
 (0)