mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
[PM-2135] chore: add hack comment
This commit is contained in:
@@ -28,6 +28,11 @@ export class UserVerificationComponent implements ControlValueAccessor, OnInit,
|
|||||||
set invalidSecret(value: boolean) {
|
set invalidSecret(value: boolean) {
|
||||||
this._invalidSecret = value;
|
this._invalidSecret = value;
|
||||||
this.invalidSecretChange.emit(value);
|
this.invalidSecretChange.emit(value);
|
||||||
|
|
||||||
|
// ISSUE: This is pretty hacky but unfortunately there is no way of knowing if the parent
|
||||||
|
// control has been marked as touched, see: https://github.com/angular/angular/issues/10887
|
||||||
|
// When that functionality has been added we should also look into forwarding reactive form
|
||||||
|
// controls errors so that we don't need a separate input/output `invalidSecret`.
|
||||||
if (value) {
|
if (value) {
|
||||||
this.secret.markAsTouched();
|
this.secret.markAsTouched();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user