mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(platform): subscribeWithPriority trigger change detection (#18962)
fixes #18959
This commit is contained in:
@ -46,9 +46,9 @@ export class Platform {
|
|||||||
zone.run(() => {
|
zone.run(() => {
|
||||||
this.win = doc.defaultView;
|
this.win = doc.defaultView;
|
||||||
this.backButton.subscribeWithPriority = function(priority, callback) {
|
this.backButton.subscribeWithPriority = function(priority, callback) {
|
||||||
return this.subscribe(ev => {
|
return this.subscribe(ev => (
|
||||||
ev.register(priority, callback);
|
ev.register(priority, () => zone.run(callback))
|
||||||
});
|
));
|
||||||
};
|
};
|
||||||
|
|
||||||
proxyEvent(this.pause, doc, 'pause');
|
proxyEvent(this.pause, doc, 'pause');
|
||||||
|
Reference in New Issue
Block a user