Roo/bootstrap/ComboBox.js
authorjohn <john@roojs.com>
Wed, 3 Jan 2018 07:42:54 +0000 (15:42 +0800)
committerjohn <john@roojs.com>
Wed, 3 Jan 2018 07:42:54 +0000 (15:42 +0800)
Roo/bootstrap/ComboBox.js

index 77c969f..e266a06 100644 (file)
@@ -604,18 +604,22 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
                 if(this.indicatorpos == 'right'){
                     Roo.log('hidden name:'+this.hiddenName);
                     cfg.cn = [
-                       {
-                           tag : 'i',
-                           cls : 'roo-required-indicator left-indicator text-danger fa fa-lg fa-star',
-                           tooltip : 'This field is required'
-                       },
-                       {
+                        {
                            tag: 'label',
-                           //cls : 'input-group-addon',
-                           html : this.fieldLabel
-                       },
-                       combobox
-                   ];
+                           cn : [
+                               {
+                                   tag : 'span',
+                                   html : this.fieldLabel
+                               },
+                               {
+                                  tag : 'i',
+                                  cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star',
+                                  tooltip : 'This field is required'
+                               }
+                           ]
+                        },
+                        combobox
+                    ];
                     
                 }