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