mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
Update tabs.tsx
This commit is contained in:
@ -182,6 +182,9 @@ export class Tabs implements NavOutlet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private onTabClicked = (ev: CustomEvent<TabButtonClickEventDetail>) => {
|
private onTabClicked = (ev: CustomEvent<TabButtonClickEventDetail>) => {
|
||||||
|
|
||||||
|
console.log("onTabClicked");
|
||||||
|
|
||||||
const { href, tab } = ev.detail;
|
const { href, tab } = ev.detail;
|
||||||
if (this.useRouter && href !== undefined) {
|
if (this.useRouter && href !== undefined) {
|
||||||
const router = document.querySelector('ion-router');
|
const router = document.querySelector('ion-router');
|
||||||
|
Reference in New Issue
Block a user