mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(tabs): do not select when using router
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user