mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(platform): resize events are dispatched inside zone
This commit is contained in:
@ -807,9 +807,9 @@ export class Platform {
|
|||||||
if (this.hasFocusedTextInput() === false) {
|
if (this.hasFocusedTextInput() === false) {
|
||||||
this._isPortrait = null;
|
this._isPortrait = null;
|
||||||
}
|
}
|
||||||
this.resize.emit();
|
this.zone.run(() => this.resize.emit());
|
||||||
}, 200);
|
}, 200);
|
||||||
}, { passive: true, zone: true });
|
}, { passive: true, zone: false });
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user