mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
Fix url is not correct after selecting tabs
Update deeplinker's updateNav after tabSwitchEnd so deeplinker gets the right active navchild.
This commit is contained in:
@ -405,10 +405,10 @@ export class Tabs extends Ion implements AfterViewInit {
|
||||
// Let's start the transition
|
||||
opts.animate = false;
|
||||
selectedTab.load(opts, () => {
|
||||
this._tabSwitchEnd(selectedTab, selectedPage, currentPage);
|
||||
if (opts.updateUrl !== false) {
|
||||
this._linker.navChange(DIRECTION_SWITCH);
|
||||
}
|
||||
this._tabSwitchEnd(selectedTab, selectedPage, currentPage);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user