diff --git a/projects/components/src/input/input.component.ts b/projects/components/src/input/input.component.ts index 3a704786b..9e4426110 100644 --- a/projects/components/src/input/input.component.ts +++ b/projects/components/src/input/input.component.ts @@ -86,6 +86,7 @@ export class InputComponent implements ControlValueAc public registerOnTouched(onTouch: (value: T | undefined) => void): void { this.propagateControlValueChangeOnTouch = onTouch; } + public setDisabledState(isDisabled?: boolean): void { this.disabled = isDisabled ?? false; } diff --git a/projects/components/src/select/select.component.ts b/projects/components/src/select/select.component.ts index 427563104..db65d2a0e 100644 --- a/projects/components/src/select/select.component.ts +++ b/projects/components/src/select/select.component.ts @@ -324,6 +324,10 @@ export class SelectComponent implements ControlValueAccessor, AfterContentIni this.propagateControlValueChangeOnTouch = onTouch; } + public setDisabledState(isDisabled?: boolean): void { + this.disabled = isDisabled ?? false; + } + private propagateValueChangeToFormControl(value: V | undefined): void { this.propagateControlValueChange?.(value); this.propagateControlValueChangeOnTouch?.(value);