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

index 1fd7ee1..073ec16 100644 (file)
@@ -1016,13 +1016,14 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
             return;
         }
         
-        this.fieldLabel = v;
+        
         
         if(this.indicator){
             var ar = this.el.select('label > span',true);
             
             if (ar.elements.length) {
                 this.el.select('label > span',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);
+                this.fieldLabel = v;
                 return;
             }
             
@@ -1030,6 +1031,7 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
             
             if(br.elements.length) {
                 this.el.select('label',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);
+                this.fieldLabel = v;
                 return;
             }