mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
UIF - Prefer signal & change detection (#16940)
This commit is contained in:
@@ -74,6 +74,8 @@ export class BitInputDirective implements BitFormFieldControl {
|
||||
// TODO: Skipped for signal migration because:
|
||||
// Accessor inputs cannot be migrated as they are too complex.
|
||||
@HostBinding()
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||
@Input()
|
||||
get required() {
|
||||
return this._required ?? this.ngControl?.control?.hasValidator(Validators.required) ?? false;
|
||||
|
||||
Reference in New Issue
Block a user