mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
fix(tabs): remove debugger
This commit is contained in:
@ -100,7 +100,6 @@ export class Tabs implements NavOutlet {
|
|||||||
// @Listen('ionSelect')
|
// @Listen('ionSelect')
|
||||||
protected tabChange(ev: CustomEvent) {
|
protected tabChange(ev: CustomEvent) {
|
||||||
const selectedTab = ev.detail as HTMLIonTabElement;
|
const selectedTab = ev.detail as HTMLIonTabElement;
|
||||||
debugger;
|
|
||||||
this.select(selectedTab);
|
this.select(selectedTab);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,7 +110,7 @@ export class Tabs implements NavOutlet {
|
|||||||
select(tabOrIndex: number | HTMLIonTabElement): Promise<boolean> {
|
select(tabOrIndex: number | HTMLIonTabElement): Promise<boolean> {
|
||||||
const selectedTab = (typeof tabOrIndex === 'number' ? this.getByIndex(tabOrIndex) : tabOrIndex);
|
const selectedTab = (typeof tabOrIndex === 'number' ? this.getByIndex(tabOrIndex) : tabOrIndex);
|
||||||
if (!selectedTab) {
|
if (!selectedTab) {
|
||||||
return Promise.resolve();
|
return Promise.resolve(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset rest of tabs
|
// Reset rest of tabs
|
||||||
|
Reference in New Issue
Block a user