mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(tabs): don't preload if already loaded
This commit is contained in:
@@ -90,7 +90,7 @@ export class Tab extends NavController {
|
||||
this.tabs.select(this);
|
||||
|
||||
} else if (this.tabs.preloadTabs) {
|
||||
setTimeout(() => {
|
||||
this._loadTm = setTimeout(() => {
|
||||
let opts = {
|
||||
animate: false,
|
||||
preload: true
|
||||
@@ -114,6 +114,8 @@ export class Tab extends NavController {
|
||||
|
||||
loadPage(viewCtrl, navbarContainerRef, done) {
|
||||
// by default a page's navbar goes into the shared tab's navbar section
|
||||
clearTimeout(this._loadTm);
|
||||
|
||||
navbarContainerRef = this.tabs.navbarContainerRef;
|
||||
|
||||
let isTabSubPage = (this.tabs.subPages && viewCtrl.index > 0);
|
||||
|
||||
Reference in New Issue
Block a user