Skip to content

Commit

Permalink
fix(tabs): do not select when using router
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Mar 6, 2018
1 parent c8a27b7 commit 174d9b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/src/components/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ export class Tabs implements NavOutlet {
}

componentDidLoad() {
return this.initTabs()
.then(() => this.initSelect());
return this.initTabs().then(() => {
const useRouter = !!document.querySelector('ion-router');
return useRouter ? this.initSelect() : Promise.resolve();
});
}

componentDidUnload() {
Expand Down

0 comments on commit 174d9b5

Please sign in to comment.