diff --git a/libs/components/src/form-control/form-control.abstraction.ts b/libs/components/src/form-control/form-control.abstraction.ts index 44b2ce0df7f..1bd0286fc55 100644 --- a/libs/components/src/form-control/form-control.abstraction.ts +++ b/libs/components/src/form-control/form-control.abstraction.ts @@ -33,8 +33,13 @@ export abstract class BitFormControlAbstraction { set error(value: [string, any]) { this._error = value; } + _elementRef: ElementRef; + // get elementRef(): ElementRef { + // return this._elementRef; + // } + constructor(elementRef: ElementRef) { this._elementRef = elementRef; } diff --git a/libs/components/src/radio-button/radio-input.component.ts b/libs/components/src/radio-button/radio-input.component.ts index 57cc2195f76..33100db1679 100644 --- a/libs/components/src/radio-button/radio-input.component.ts +++ b/libs/components/src/radio-button/radio-input.component.ts @@ -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;