Skip to content

Commit 37c132f

Browse files
committed
fix tabs
1 parent c8a546f commit 37c132f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/components/tabs/tabs.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ export class Tabs implements NavOutlet {
4444
if (!this.useRouter) {
4545
this.useRouter = !!document.querySelector('ion-router') && !this.el.closest('[no-router]');
4646
}
47-
const tabs = this.tabs;
48-
await this.select(tabs[0]);
49-
47+
if (!this.useRouter) {
48+
const tabs = this.tabs;
49+
await this.select(tabs[0]);
50+
}
5051
this.ionNavWillLoad.emit();
5152
}
5253

0 commit comments

Comments
 (0)