Roo/bootstrap/TextArea.js
authoredward <edward@roojs.com>
Thu, 21 Apr 2016 08:26:59 +0000 (16:26 +0800)
committeredward <edward@roojs.com>
Thu, 21 Apr 2016 08:26:59 +0000 (16:26 +0800)
Roo/bootstrap/TextArea.js

index d88d4ae..07eefee 100644 (file)
@@ -242,16 +242,11 @@ Roo.extend(Roo.bootstrap.TextArea, Roo.bootstrap.Input,  {
             return;
         }
         
-        var formGroup = this.el.findParent('.form-group', false, true);
+        var label = this.el.select('label', true).first();
+        var icon = thie.el.select('i.fa-star', true).first();
         
-        if(formGroup){
-            
-            var label = formGroup.select('label', true).first();
-            var icon = formGroup.select('i.fa-star', true).first();
-            
-            if(label && icon){
-                icon.remove();
-            }
+        if(label && icon){
+            icon.remove();
         }
         
         this.el.addClass(this.validClass);