mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix(alert): return promise from dismiss
This commit is contained in:
@ -197,8 +197,8 @@ class ActionSheetCmp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dismiss() {
|
dismiss(): Promise<any> {
|
||||||
this._viewCtrl.dismiss(null);
|
return this._viewCtrl.dismiss(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
onPageLoaded() {
|
onPageLoaded() {
|
||||||
|
@ -418,8 +418,8 @@ class AlertCmp {
|
|||||||
checkedInput.checked = !checkedInput.checked;
|
checkedInput.checked = !checkedInput.checked;
|
||||||
}
|
}
|
||||||
|
|
||||||
dismiss() {
|
dismiss(): Promise<any> {
|
||||||
this._viewCtrl.dismiss(this.getValues());
|
return this._viewCtrl.dismiss(this.getValues());
|
||||||
}
|
}
|
||||||
|
|
||||||
getValues() {
|
getValues() {
|
||||||
|
Reference in New Issue
Block a user