Roo/bootstrap/ComboBox.js
authoredward <edward@roojs.com>
Thu, 28 Dec 2017 03:31:39 +0000 (11:31 +0800)
committeredward <edward@roojs.com>
Thu, 28 Dec 2017 03:31:39 +0000 (11:31 +0800)
Roo/bootstrap/ComboBox.js

index 84c81c5..a68cee5 100644 (file)
@@ -1166,7 +1166,16 @@ Roo.extend(Roo.bootstrap.ComboBox, Roo.bootstrap.TriggerField, {
         
         if(this.store.getCount() > 0){
             
-            if(this.)
+            if(this.emptyTitle.length) {
+                
+                var r = new Roo.data.Record({});
+                
+                r.set(this.displayField, this.emptyTitle);
+                r.set('id', 0);
+
+                this.insert(0, r);
+                
+            }
             
             this.expand();
             this.restrictHeight();