mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(tabs): reference parent instead of parentTabs
This commit is contained in:
@ -233,9 +233,9 @@ export class Tab extends NavController {
|
||||
|
||||
parent.add(this);
|
||||
|
||||
if (parentTabs.rootNav) {
|
||||
this._sbEnabled = parentTabs.rootNav.isSwipeBackEnabled();
|
||||
}
|
||||
if (parent.rootNav) {
|
||||
this._sbEnabled = parent.rootNav.isSwipeBackEnabled();
|
||||
}
|
||||
|
||||
this._panelId = 'tabpanel-' + this.id;
|
||||
this._btnId = 'tab-' + this.id;
|
||||
|
Reference in New Issue
Block a user