diff --git a/bundle/src/components/text-field/mdc.text-field.directive.ts b/bundle/src/components/text-field/mdc.text-field.directive.ts index 6e21be6..10c576b 100644 --- a/bundle/src/components/text-field/mdc.text-field.directive.ts +++ b/bundle/src/components/text-field/mdc.text-field.directive.ts @@ -471,4 +471,11 @@ export class MdcTextFieldDirective extends AbstractMdcRipple implements AfterCon "Change the content of the mdcTextFieldHelperText instead.") this._helperText = helperText; } + + @HostBinding('class.mdc-text-field--disabled') get _disabled() { + // TODO: this mirrors what the text-field can update itself from adapter.getNativeInput + // is there a way to trigger the textfield to re-read that when the disabled state of + // the input changes? + return this._input ? this._input.disabled : false; + } }