1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-22 07:50:04 +02:00

fix forwarder display after navigation bug

This commit is contained in:
✨ Audrey ✨ 2024-10-17 16:34:04 -04:00
parent 9da8aa8a18
commit 2ecef518d8
No known key found for this signature in database
GPG Key ID: 0CF8B4C0D9088B97

View File

@ -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