TextArea now correctly sets the disabled state of its textarea element.

This commit is contained in:
Daan Vanden Bosch 2020-04-29 20:05:35 +02:00
parent fb0f49611a
commit d69a0cbc00

View File

@ -49,4 +49,10 @@ export class TextArea extends LabelledControl {
protected set_value(value: string): void { protected set_value(value: string): void {
this.text_element.value = value; this.text_element.value = value;
} }
protected set_enabled(enabled: boolean): void {
super.set_enabled(enabled);
this.text_element.disabled = !enabled;
}
} }