mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(modal, popover): do not dismiss when ionDismiss is emitted from select (#25125)
resolves #25124
This commit is contained in:
@ -723,13 +723,6 @@ export class Modal implements ComponentInterface, OverlayInterface {
|
||||
this.dismiss(undefined, BACKDROP);
|
||||
};
|
||||
|
||||
private onDismiss = (ev: UIEvent) => {
|
||||
ev.stopPropagation();
|
||||
ev.preventDefault();
|
||||
|
||||
this.dismiss();
|
||||
};
|
||||
|
||||
private onLifecycle = (modalEvent: CustomEvent) => {
|
||||
const el = this.usersElement;
|
||||
const name = LIFECYCLE_MAP[modalEvent.type];
|
||||
@ -770,7 +763,6 @@ export class Modal implements ComponentInterface, OverlayInterface {
|
||||
}}
|
||||
id={modalId}
|
||||
onIonBackdropTap={this.onBackdropTap}
|
||||
onIonDismiss={this.onDismiss}
|
||||
onIonModalDidPresent={this.onLifecycle}
|
||||
onIonModalWillPresent={this.onLifecycle}
|
||||
onIonModalWillDismiss={this.onLifecycle}
|
||||
|
||||
Reference in New Issue
Block a user