1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

[PM-2135] feat: hack mark as touched to get error to display

This commit is contained in:
Andreas Coroiu
2023-05-05 14:40:10 +02:00
parent f69b42a622
commit 8ebaff3612
2 changed files with 11 additions and 2 deletions

View File

@@ -27,6 +27,9 @@ export class UserVerificationComponent implements ControlValueAccessor, OnInit {
set invalidSecret(value: boolean) {
this._invalidSecret = value;
this.invalidSecretChange.emit(value);
if (value) {
this.secret.markAsTouched();
}
this.secret.updateValueAndValidity({ emitEvent: false });
}
@Output() invalidSecretChange = new EventEmitter<boolean>();