fix back btn when switching tabs

This commit is contained in:
Adam Bradley
2015-06-27 14:04:12 -05:00
parent 6bb2035e55
commit edbcf9f834

View File

@ -59,6 +59,13 @@ export class Tab extends ViewController {
return activeItem && activeItem.navbarView();
};
item.enableBack = () => {
// override ViewItem's enableBack(), should use the
// active child nav item's enableBack() instead
let activeItem = this.getActive();
return (activeItem && activeItem.enableBack());
};
this.panelId = 'tab-panel-' + item.id;
this.labeledBy = 'tab-button-' + item.id;
}