Skip to content

Commit

Permalink
fix(tabs): use segment if it exists even if component exists
Browse files Browse the repository at this point in the history
  • Loading branch information
danbucholtz committed Jun 27, 2017
1 parent 0f5c47d commit 016b90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tabs/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 016b90d

Please sign in to comment.