mirror of
https://github.com/bitwarden/browser
synced 2026-02-06 11:43:51 +00:00
WIP
This commit is contained in:
@@ -33,8 +33,13 @@ export abstract class BitFormControlAbstraction {
|
||||
set error(value: [string, any]) {
|
||||
this._error = value;
|
||||
}
|
||||
|
||||
_elementRef: ElementRef<HTMLElement>;
|
||||
|
||||
// get elementRef(): ElementRef<HTMLElement> {
|
||||
// return this._elementRef;
|
||||
// }
|
||||
|
||||
constructor(elementRef: ElementRef<HTMLElement>) {
|
||||
this._elementRef = elementRef;
|
||||
}
|
||||
|
||||
@@ -74,12 +74,7 @@ export class RadioInputComponent implements BitFormControlAbstraction {
|
||||
"checked:disabled:before:tw-bg-secondary-600",
|
||||
];
|
||||
|
||||
constructor(
|
||||
elementRef: ElementRef,
|
||||
@Optional() @Self() private ngControl?: NgControl,
|
||||
) {
|
||||
super(elementRef);
|
||||
}
|
||||
constructor(@Optional() @Self() private ngControl?: NgControl) {}
|
||||
|
||||
// TODO: Skipped for signal migration because:
|
||||
// Accessor inputs cannot be migrated as they are too complex.
|
||||
@@ -91,7 +86,7 @@ export class RadioInputComponent implements BitFormControlAbstraction {
|
||||
set disabled(value: any) {
|
||||
this._disabled = value != null && value !== false;
|
||||
}
|
||||
// private _disabled: boolean;
|
||||
private _disabled: boolean;
|
||||
|
||||
// TODO: Skipped for signal migration because:
|
||||
// Accessor inputs cannot be migrated as they are too complex.
|
||||
@@ -104,7 +99,7 @@ export class RadioInputComponent implements BitFormControlAbstraction {
|
||||
set required(value: any) {
|
||||
this._required = value != null && value !== false;
|
||||
}
|
||||
// private _required: boolean;
|
||||
private _required: boolean;
|
||||
|
||||
get hasError() {
|
||||
return this.ngControl?.status === "INVALID" && this.ngControl?.touched;
|
||||
|
||||
Reference in New Issue
Block a user