From: Michael Date: Wed, 4 Mar 2015 07:20:56 +0000 (+0800) Subject: Roo/form/ComboBox.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=0d72bfc84fba31adf1870cb3e020a08de5bfcaa3 Roo/form/ComboBox.js --- diff --git a/Roo/form/ComboBox.js b/Roo/form/ComboBox.js index 9cbfecf3cb..f816ebf879 100644 --- a/Roo/form/ComboBox.js +++ b/Roo/form/ComboBox.js @@ -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);