-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Closed
Description
Short description of the problem:
Currently it's not possible to configure Alert's dismissal although it's supported by the ViewController.
What behavior are you expecting?
To be able to pass NavOptions to Alert.dimiss() in order to configure how an alert is dismissed.
// https://github.com/driftyco/ionic/blob/2.0/src/components/alert/alert.ts
class AlertCmp {
// ...
dismiss(role: any): Promise<any> {
return this._viewCtrl.dismiss(this.getValues(), role);
}
// ...
}
// https://github.com/driftyco/ionic/blob/2.0/src/components/nav/view-controller.ts
export class ViewController {
//...
dismiss(data?: any, role?: any, navOptions: NavOptions = {}) {
let options = merge({}, this._leavingOpts, navOptions);
return this._nav.remove(this._nav.indexOf(this), 1, options).then(() => {
this._onDismiss && this._onDismiss(data, role);
return data;
});
}
// ...
}Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
https://forum.ionicframework.com/t/2-0-0-beta8-modal-animation-issue/54332
Which Ionic Version? 2.x
Metadata
Metadata
Assignees
Labels
No labels