1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-06 11:43:51 +00:00
This commit is contained in:
Bryan Cunningham
2025-07-25 12:05:51 -04:00
parent 7ff23ffb5e
commit 46fe17d5ab
2 changed files with 8 additions and 8 deletions

View File

@@ -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;
}

View File

@@ -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;