diff --git a/ionic/components/text-input/text-input.ts b/ionic/components/text-input/text-input.ts index 785a3bb4d5..b4dac94297 100644 --- a/ionic/components/text-input/text-input.ts +++ b/ionic/components/text-input/text-input.ts @@ -461,12 +461,14 @@ export class TextInputElement { this.type = type; this.elementRef = elementRef; this.wrapper = wrapper; - this.renderer = renderer; - renderer.setElementAttribute(this.elementRef, 'text-input', ''); + + // all text inputs (textarea, input[type=text],input[type=password], etc) + renderer.setElementClass(elementRef, 'text-input', true); if (wrapper) { // it's within ionic's ion-input, let ion-input handle what's up + renderer.setElementClass(elementRef, 'item-input', true); wrapper.registerInput(this); } }