Roo/bootstrap/ComboBox.js
authoredward <edward@roojs.com>
Tue, 17 Apr 2018 08:29:56 +0000 (16:29 +0800)
committeredward <edward@roojs.com>
Tue, 17 Apr 2018 08:29:56 +0000 (16:29 +0800)
Roo/bootstrap/ComboBox.js

index e24c54b..99f4540 100644 (file)
@@ -2833,7 +2833,11 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
         
         if(this.allowBlank) {
             
-            var default_text = (this.placeholder.length) ? this.placeholder : '-- SELECT --';
+            var default_text = '-- SELECT --';
+            
+            if(this.placeholder.length){
+                default_text = this.placeholder + ' - ';
+            }
             
             var opt = this.inputEl().createChild({
                 tag: 'option',