From 2fae5ba1bedcd2dcb0edcdc52ab45fbdcd6fee00 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 8 Dec 2015 14:43:03 -0600 Subject: [PATCH] change [text-input] to .text-input, add .item-input --- ionic/components/text-input/text-input.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } }