Roo/bootstrap/TextArea.js
[roojs1] / Roo / bootstrap / TextArea.js
index 3e26780..63ad263 100644 (file)
@@ -340,12 +340,12 @@ Roo.extend(Roo.bootstrap.TextArea, Roo.bootstrap.Input,  {
         }
         
         if (Roo.bootstrap.version == 3) {
-            this.el.addClass(this.validClass);
+            this.el.addClass(this.invalidClass);
         } else {
-            this.inputEl().addClass('is-valid');
+            this.inputEl().addClass('is-invalid');
         }
-        this.el.addClass(this.invalidClass);
         
+        // fixme ... this may be depricated need to test..
         if(this.hasFeedback && this.inputType != 'hidden' && !this.allowBlank){
             
             var feedback = this.el.select('.form-control-feedback', true).first();