From 97835f7627a1555d36761f14342a7c0e21054aa0 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 23 Apr 2018 11:50:14 -0400 Subject: [PATCH] detect chages on promise catch --- src/popup/vault/current-tab.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/popup/vault/current-tab.component.ts b/src/popup/vault/current-tab.component.ts index 2338ee4b70..c36ea4f6b5 100644 --- a/src/popup/vault/current-tab.component.ts +++ b/src/popup/vault/current-tab.component.ts @@ -153,8 +153,11 @@ export class CurrentTabComponent implements OnInit, OnDestroy { BrowserApi.closePopup(window); } }).catch(() => { - this.analytics.eventTrack.next({ action: 'Autofilled Error' }); - this.toasterService.popAsync('error', null, this.i18nService.t('autofillError')); + this.ngZone.run(() => { + this.analytics.eventTrack.next({ action: 'Autofilled Error' }); + this.toasterService.popAsync('error', null, this.i18nService.t('autofillError')); + this.changeDetectorRef.detectChanges(); + }); }); // Weird bug in Safari won't allow clipboard copying after a promise call, so we have this workaround