Skip to content

Commit

Permalink
fix(alert): keyboard is closed
Browse files Browse the repository at this point in the history
fixes #8185
  • Loading branch information
manucorporat committed Dec 5, 2016
1 parent 660d531 commit f354d91
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/alert/alert-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,14 @@ export class AlertCmp {
}

ionViewDidLeave() {
focusOutActiveElement();
this.gestureBlocker.unblock();
}

ionViewWillLeave() {
focusOutActiveElement();
}

ionViewDidEnter() {
// focus out of the active element
focusOutActiveElement();
Expand Down Expand Up @@ -254,7 +259,6 @@ export class AlertCmp {

if (shouldDismiss) {
this.dismiss(button.role);
focusOutActiveElement();
}
}

Expand Down Expand Up @@ -294,7 +298,6 @@ export class AlertCmp {
}

dismiss(role: any): Promise<any> {
focusOutActiveElement();
return this._viewCtrl.dismiss(this.getValues(), role);
}

Expand Down

0 comments on commit f354d91

Please sign in to comment.