fix(tabs): use segment if it exists even if component exists

This commit is contained in:
Dan Bucholtz
2017-06-27 14:20:17 -05:00
parent 0f5c47db15
commit 016b90da47

View File

@@ -325,7 +325,7 @@ export class Tabs extends Ion implements AfterViewInit, RootNode, ITabs, Navigat
// now see if the deep linker can find a tab index
const tabsSegment = this._linker.getSegmentByNavId(this.id);
if (tabsSegment && isBlank(tabsSegment.component)) {
if (tabsSegment) {
// we found a segment which probably represents which tab to select
selectedIndex = this._getSelectedTabIndex(tabsSegment.secondaryId, selectedIndex);
}