mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
fix(react, vue): tab buttons no longer throw an error if href is undefined (#22998)
resolves #22997
This commit is contained in:
@ -252,7 +252,9 @@ export const createIonRouter = (opts: IonicVueRouterOptions, router: Router) =>
|
||||
}
|
||||
}
|
||||
|
||||
const changeTab = (tab: string, path: string) => {
|
||||
const changeTab = (tab: string, path?: string) => {
|
||||
if (!path) return;
|
||||
|
||||
const routeInfo = locationHistory.getCurrentRouteInfoForTab(tab);
|
||||
const [pathname] = path.split('?');
|
||||
|
||||
|
Reference in New Issue
Block a user