mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
ensure disabled fields are still included with cipher (#13297)
This commit is contained in:
@@ -127,8 +127,9 @@ export class CustomFieldsComponent implements OnInit, AfterViewInit {
|
|||||||
this.destroyed$ = inject(DestroyRef);
|
this.destroyed$ = inject(DestroyRef);
|
||||||
this.cipherFormContainer.registerChildForm("customFields", this.customFieldsForm);
|
this.cipherFormContainer.registerChildForm("customFields", this.customFieldsForm);
|
||||||
|
|
||||||
this.customFieldsForm.valueChanges.pipe(takeUntilDestroyed()).subscribe((values) => {
|
this.customFieldsForm.valueChanges.pipe(takeUntilDestroyed()).subscribe(() => {
|
||||||
this.updateCipher(values.fields);
|
// getRawValue ensures disabled fields are included
|
||||||
|
this.updateCipher(this.fields.getRawValue());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user