projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c5bc7d
)
Roo/form/ComboBox.js
author
Michael
<michael@roojs.com>
Wed, 4 Mar 2015 07:20:56 +0000
(15:20 +0800)
committer
Michael
<michael@roojs.com>
Wed, 4 Mar 2015 07:20:56 +0000
(15:20 +0800)
Roo/form/ComboBox.js
patch
|
blob
|
history
diff --git
a/Roo/form/ComboBox.js
b/Roo/form/ComboBox.js
index
9cbfecf
..
f816ebf
100644
(file)
--- 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);