From 3a22105375d8dcea52cd891a7a22627a4acaad43 Mon Sep 17 00:00:00 2001 From: Manu MA Date: Tue, 6 Aug 2019 13:39:01 +0200 Subject: [PATCH] fix(platform): subscribeWithPriority trigger change detection (#18962) fixes #18959 --- angular/src/providers/platform.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/angular/src/providers/platform.ts b/angular/src/providers/platform.ts index 5ab530403a..8071b3412c 100644 --- a/angular/src/providers/platform.ts +++ b/angular/src/providers/platform.ts @@ -46,9 +46,9 @@ export class Platform { zone.run(() => { this.win = doc.defaultView; this.backButton.subscribeWithPriority = function(priority, callback) { - return this.subscribe(ev => { - ev.register(priority, callback); - }); + return this.subscribe(ev => ( + ev.register(priority, () => zone.run(callback)) + )); }; proxyEvent(this.pause, doc, 'pause');