From 174d9b5a414ed5eb4e912b3fd5e7b6b396886082 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Tue, 6 Mar 2018 23:02:43 +0100 Subject: [PATCH] fix(tabs): do not select when using router --- packages/core/src/components/tabs/tabs.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/components/tabs/tabs.tsx b/packages/core/src/components/tabs/tabs.tsx index 756e639f24a..d195063eb20 100644 --- a/packages/core/src/components/tabs/tabs.tsx +++ b/packages/core/src/components/tabs/tabs.tsx @@ -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() {