Skip to content

Commit ed6d0fa

Browse files
committed
fix(tabs): reference parent instead of parentTabs
1 parent 603000f commit ed6d0fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/tabs/tab.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ export class Tab extends NavController {
233233

234234
parent.add(this);
235235

236-
if (parentTabs.rootNav) {
237-
this._sbEnabled = parentTabs.rootNav.isSwipeBackEnabled();
238-
}
236+
if (parent.rootNav) {
237+
this._sbEnabled = parent.rootNav.isSwipeBackEnabled();
238+
}
239239

240240
this._panelId = 'tabpanel-' + this.id;
241241
this._btnId = 'tab-' + this.id;

0 commit comments

Comments
 (0)