1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +00:00

ensure disabled fields are still included with cipher (#13297)

This commit is contained in:
Jordan Aasen
2025-02-06 12:44:27 -08:00
committed by GitHub
parent 3e988fae6f
commit c8a6537942

View File

@@ -127,8 +127,9 @@ export class CustomFieldsComponent implements OnInit, AfterViewInit {
this.destroyed$ = inject(DestroyRef);
this.cipherFormContainer.registerChildForm("customFields", this.customFieldsForm);
this.customFieldsForm.valueChanges.pipe(takeUntilDestroyed()).subscribe((values) => {
this.updateCipher(values.fields);
this.customFieldsForm.valueChanges.pipe(takeUntilDestroyed()).subscribe(() => {
// getRawValue ensures disabled fields are included
this.updateCipher(this.fields.getRawValue());
});
}