mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(cordova): fix resume event in cordova browser (#15945)
Fixes #15944
This commit is contained in:
@ -10,7 +10,7 @@ export function inputs(instance: any, el: ElementRef, props: string[]) {
|
||||
|
||||
export function proxyEvent<T>(emitter: EventEmitter<T>, el: EventTarget, eventName: string) {
|
||||
el.addEventListener(eventName, (ev) => {
|
||||
emitter.emit((ev as any).detail as T);
|
||||
emitter.emit(ev ? (ev as any).detail as T : undefined);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user