mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
feat(overlay): fire the cancel handler when dismissing from backdrop
Renamed action sheet’s button.style to button.role, and added button.role to alerts. Pass the button’s role in the dismiss method. Related #5251
This commit is contained in:
@ -83,8 +83,8 @@ export class ViewController {
|
||||
this._onDismiss = callback;
|
||||
}
|
||||
|
||||
dismiss(data) {
|
||||
this._onDismiss && this._onDismiss(data);
|
||||
dismiss(data, role?) {
|
||||
this._onDismiss && this._onDismiss(data, role);
|
||||
return this._nav.remove(this._nav.indexOf(this), 1, this._leavingOpts);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user