Roo/bootstrap/TriggerField.js
authorAlan Knowles <alan@roojs.com>
Thu, 24 Jan 2019 08:40:45 +0000 (16:40 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 Jan 2019 08:40:45 +0000 (16:40 +0800)
Roo/bootstrap/TriggerField.js

index b9fc8fa..33598f4 100644 (file)
@@ -228,7 +228,8 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input,  {
             
             combobox.cn.push({
                 tag :'span',
-                cls : 'input-group-addon input-group-append input-group-text btn dropdown-toggle',
+                cls : 'input-group-addon input-group-append input-group-text btn'  +
+                    (Roo.bootstrap.version == 3 ? ' dropdown-toggle' : ''),
                 cn : [
                     caret,
                     {
@@ -434,7 +435,7 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input,  {
         Roo.bootstrap.TriggerField.superclass.initEvents.call(this);
         //this.wrap = this.el.wrap({cls: "x-form-field-wrap"});
         if(!this.multiple && this.showToggleBtn){
-            this.trigger = this.el.select('span.dropdown-toggle',true).first();
+            this.trigger = this.el.select('span.input-group-append',true).first();
             if(this.hideTrigger){
                 this.trigger.setDisplayed(false);
             }