From 73015476ad66c10e746546a630e38942d8bdc824 Mon Sep 17 00:00:00 2001 From: Andrew Seguin Date: Thu, 16 Jan 2020 12:02:21 -0800 Subject: [PATCH] fix(material/input): apply static class binding to host --- src/material/input/input.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/material/input/input.ts b/src/material/input/input.ts index 2bed69a1d1da..2363b4046cd3 100644 --- a/src/material/input/input.ts +++ b/src/material/input/input.ts @@ -71,8 +71,7 @@ const _MatInputMixinBase: CanUpdateErrorStateCtor & typeof MatInputBase = /** * @breaking-change 8.0.0 remove .mat-form-field-autofill-control in favor of AutofillMonitor. */ - '[class.mat-form-field-autofill-control]': 'true', - '[class.mat-input-element]': 'true', + 'class': 'mat-input-element mat-form-field-autofill-control', '[class.mat-input-server]': '_isServer', // Native input properties that are overwritten by Angular inputs need to be synced with // the native input element. Otherwise property bindings for those don't work.