Roo/form/ComboBox.js
authorAlan Knowles <alan@roojs.com>
Thu, 5 Mar 2015 08:08:34 +0000 (16:08 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 5 Mar 2015 08:08:34 +0000 (16:08 +0800)
Roo/form/ComboBox.js

index f816ebf..734a99e 100644 (file)
@@ -642,13 +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);
         }
+        return Roo.form.ComboBox.superclass.getValue.call(this);
     },
 
     /**