Roo/bootstrap/TriggerField.js
authoredward <edward@roojs.com>
Thu, 23 Nov 2017 11:15:13 +0000 (19:15 +0800)
committeredward <edward@roojs.com>
Thu, 23 Nov 2017 11:15:13 +0000 (19:15 +0800)
Roo/bootstrap/TriggerField.js

index 9b6c5b4..756475b 100644 (file)
@@ -301,14 +301,12 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input,  {
                         tag: 'label',
                         'for' :  id,
                         cls : 'control-label',
-                        html : this.fieldLabel,
-                        cn: [
-                            {
-                                tag : 'i',
-                                cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star',
-                                tooltip : 'This field is required'
-                            }
-                        ]
+                        html : this.fieldLabel
+                    },
+                    {
+                        tag : 'i',
+                        cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star',
+                        tooltip : 'This field is required'
                     },
                     {
                         cls : "", 
@@ -320,7 +318,7 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input,  {
                 ];
                 
                 labelCfg = cfg.cn[0];
-                contentCfg = cfg.cn[1];
+                contentCfg = cfg.cn[2];
             }
             
             if(this.labelWidth > 12){