From: Alan Knowles Date: Thu, 24 Jan 2019 08:44:04 +0000 (+0800) Subject: Roo/bootstrap/TriggerField.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=fb554614cc1954b42bf9c95256d44eacba73fdda Roo/bootstrap/TriggerField.js Roo/bootstrap/ComboBox.js --- diff --git a/Roo/bootstrap/ComboBox.js b/Roo/bootstrap/ComboBox.js index 0e4c3de143..4abed621ee 100644 --- a/Roo/bootstrap/ComboBox.js +++ b/Roo/bootstrap/ComboBox.js @@ -2297,8 +2297,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { combobox.cn.push({ tag :'span', - cls : 'input-group-addon input-group-append input-group-text btn' + - (Roo.bootstrap.version == 3 ? ' dropdown-toggle' : ''), + cls : 'input-group-addon input-group-append input-group-text btn dropdown-toggle', cn : [ caret, { @@ -2479,7 +2478,7 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, { this.originalValue = this.getValue(); - this.triggerEl = this.el.select('span.input-group-append',true).first(); + this.triggerEl = this.el.select('span.dropdown-toggle',true).first(); this.inputEl().on("click", this.showTouchView, this); if (this.triggerEl) { diff --git a/Roo/bootstrap/TriggerField.js b/Roo/bootstrap/TriggerField.js index 33598f4865..b9fc8faa53 100644 --- a/Roo/bootstrap/TriggerField.js +++ b/Roo/bootstrap/TriggerField.js @@ -228,8 +228,7 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input, { combobox.cn.push({ tag :'span', - cls : 'input-group-addon input-group-append input-group-text btn' + - (Roo.bootstrap.version == 3 ? ' dropdown-toggle' : ''), + cls : 'input-group-addon input-group-append input-group-text btn dropdown-toggle', cn : [ caret, { @@ -435,7 +434,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.input-group-append',true).first(); + this.trigger = this.el.select('span.dropdown-toggle',true).first(); if(this.hideTrigger){ this.trigger.setDisplayed(false); }