mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(tabs): use segment if it exists even if component exists
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user