From 2ecef518d85a6375c4eda92502b5d5d300047d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=A8=20Audrey=20=E2=9C=A8?= Date: Thu, 17 Oct 2024 16:34:04 -0400 Subject: [PATCH] fix forwarder display after navigation bug --- .../components/src/credential-generator.component.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libs/tools/generator/components/src/credential-generator.component.ts b/libs/tools/generator/components/src/credential-generator.component.ts index 5ceca3235e..7f1ab55025 100644 --- a/libs/tools/generator/components/src/credential-generator.component.ts +++ b/libs/tools/generator/components/src/credential-generator.component.ts @@ -246,10 +246,14 @@ export class CredentialGeneratorComponent implements OnInit, OnDestroy { takeUntil(this.destroyed), ) .subscribe((showForwarder) => { - if (showForwarder) { - this.value$.next("-"); - } - this.showForwarder$.next(showForwarder); + // update subjects within the angular zone so that the + // template bindings refresh immediately + this.zone.run(() => { + if (showForwarder) { + this.value$.next("-"); + } + this.showForwarder$.next(showForwarder); + }); }); // populate the form with the user's preferences to kick off interactivity