mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 21:15:24 +08:00
@ -194,9 +194,14 @@ export class AlertCmp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ionViewDidLeave() {
|
ionViewDidLeave() {
|
||||||
|
focusOutActiveElement();
|
||||||
this.gestureBlocker.unblock();
|
this.gestureBlocker.unblock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ionViewWillLeave() {
|
||||||
|
focusOutActiveElement();
|
||||||
|
}
|
||||||
|
|
||||||
ionViewDidEnter() {
|
ionViewDidEnter() {
|
||||||
// focus out of the active element
|
// focus out of the active element
|
||||||
focusOutActiveElement();
|
focusOutActiveElement();
|
||||||
@ -254,7 +259,6 @@ export class AlertCmp {
|
|||||||
|
|
||||||
if (shouldDismiss) {
|
if (shouldDismiss) {
|
||||||
this.dismiss(button.role);
|
this.dismiss(button.role);
|
||||||
focusOutActiveElement();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -294,7 +298,6 @@ export class AlertCmp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dismiss(role: any): Promise<any> {
|
dismiss(role: any): Promise<any> {
|
||||||
focusOutActiveElement();
|
|
||||||
return this._viewCtrl.dismiss(this.getValues(), role);
|
return this._viewCtrl.dismiss(this.getValues(), role);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user