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:
Jack Feng
2017-01-17 16:50:25 +08:00
parent 60adf7bbd8
commit eb96cba227

View File

@ -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);
});
}