Roo/form/ComboBox.js
authorMichael <michael@roojs.com>
Wed, 4 Mar 2015 07:20:56 +0000 (15:20 +0800)
committerMichael <michael@roojs.com>
Wed, 4 Mar 2015 07:20:56 +0000 (15:20 +0800)
Roo/form/ComboBox.js

index 9cbfecf..f816ebf 100644 (file)
@@ -642,6 +642,9 @@ Roo.extend(Roo.form.ComboBox, Roo.form.TriggerField, {
      */
     getValue : function(){
         if(this.valueField){
+            if(this.editable && this.selectedIndex == -1){
+                return this.lastQuery ? this.lastQuery : this. value;
+            }
             return typeof this.value != 'undefined' ? this.value : '';
         }else{
             return Roo.form.ComboBox.superclass.getValue.call(this);