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:
@@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user