Roo/bootstrap/Input.js
authorAlan Knowles <alan@roojs.com>
Wed, 9 May 2018 06:39:59 +0000 (14:39 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 May 2018 06:39:59 +0000 (14:39 +0800)
Roo/bootstrap/Input.js

index bc59dca..fdbbc9e 100644 (file)
@@ -1019,6 +1019,12 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
         this.fieldLabel = v;
         
         if(this.indicator){
+            var ar = this.el.select('label > span',true);
+            if (!ar) {
+                Roo.log("could not find label > span on element");
+                Roo.log(this);
+                return;
+            }
             this.el.select('label > span',true).first().dom.innerHTML = (v === null || v === undefined ? '' : v);
             return;
         }