fix(overlays): make them hidden until presented (#16903)

fixes #16685
This commit is contained in:
Manu MA
2018-12-29 01:31:33 +01:00
committed by GitHub
parent 3d656ac312
commit 302be5392c
25 changed files with 35 additions and 219 deletions

View File

@ -23,8 +23,8 @@ export class Modal implements ComponentInterface, OverlayInterface {
private usersElement?: HTMLElement;
animation: Animation | undefined;
presented = false;
animation: Animation | undefined;
@Element() el!: HTMLElement;
@ -87,16 +87,6 @@ export class Modal implements ComponentInterface, OverlayInterface {
*/
@Prop() animated = true;
/**
* Emitted after the modal has loaded.
*/
@Event() ionModalDidLoad!: EventEmitter<void>;
/**
* Emitted after the modal has unloaded.
*/
@Event() ionModalDidUnload!: EventEmitter<void>;
/**
* Emitted after the modal has presented.
*/
@ -117,14 +107,6 @@ export class Modal implements ComponentInterface, OverlayInterface {
*/
@Event({ eventName: 'ionModalDidDismiss' }) didDismiss!: EventEmitter<OverlayEventDetail>;
componentDidLoad() {
this.ionModalDidLoad.emit();
}
componentDidUnload() {
this.ionModalDidUnload.emit();
}
@Listen('ionDismiss')
protected onDismiss(ev: UIEvent) {
ev.stopPropagation();