Skip to content

Commit 8aa8069

Browse files
Patricio AlbizuPatricio Albizu
authored andcommitted
feat: adding disale property to textarea component
1 parent 52a1832 commit 8aa8069

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/components/src/textarea/textarea.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ export class TextareaComponent implements ControlValueAccessor, OnInit {
7474
this.propagateControlValueChangeOnTouch = onTouch;
7575
}
7676

77+
public setDisabledState(isDisabled?: boolean): void {
78+
this.disabled = isDisabled ?? false;
79+
}
80+
7781
private propagateValueChangeToFormControl(value?: string): void {
7882
this.propagateControlValueChange?.(value);
7983
this.propagateControlValueChangeOnTouch?.(value);

0 commit comments

Comments
 (0)