Roo/bootstrap/Input.js
authorjohn <john@roojs.com>
Fri, 18 May 2018 04:09:09 +0000 (12:09 +0800)
committerjohn <john@roojs.com>
Fri, 18 May 2018 04:09:09 +0000 (12:09 +0800)
Roo/bootstrap/Input.js

index 073ec16..58beb68 100644 (file)
@@ -1016,8 +1016,6 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
             return;
         }
         
-        
-        
         if(this.indicator){
             var ar = this.el.select('label > span',true);
             
@@ -1036,8 +1034,12 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
             }
             
             Roo.log('Cannot Found any of label > span || label in input');
+            return;
         }
         
+        this.el.select('label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);
+        this.fieldLabel = v;
+        
         
     }
 });