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

index 31b5c5a..e9316fc 100644 (file)
@@ -1021,6 +1021,12 @@ Roo.extend(Roo.bootstrap.Input, Roo.bootstrap.Component,  {
         if(this.indicator){
             var ar = this.el.select('label > span',true);
             if (!ar.elements.length) {
+                $br = this.el.select('label');
+                if(!br.elements.length) {
+                    Roo.log("could not find label element");
+                    Roo.log(this);
+                    return;
+                }
                 Roo.log("could not find label > span on element");
                 Roo.log(this);
                 return;