Skip to content

Commit af3f45d

Browse files
fix(navigation-manager): merge-options (#4)
update tree during merge options process
1 parent 67d47ee commit af3f45d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/manager.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,13 @@ class NavigationManager {
391391
return;
392392
}
393393

394+
/**
395+
* Update bottom tabs index if one exists
396+
*/
397+
if (_.has(options, 'bottomTabs.currentTabIndex')) {
398+
this.tree.bottomTab.tabIndex = _.get(options, 'bottomTabs.currentTabIndex');
399+
}
400+
394401
Nav.mergeOptions(componentId, options);
395402
}
396403

0 commit comments

Comments
 (0)