PDA

View Full Version : Combo emptyText won't reset


alindsay55661
04-20-2007, 01:43 PM
I just added emptyText to my combo boxes and it looks fantastic. Initial render shows the text perfectly but if you click into the combo box and then fail to make a selection the emptyText does not reset. Instead the box just remains blank. It would be great if the emptyText would reset as shown in the combo example in the docs. Makes me wonder if its a bug with the remote data. Here is my code:

var geo_tags = new Ext.form.ComboBox({
store: ds,
displayField:'name',
valueField: 'znode_pk',
hiddenName: 'd_geo_tag_pk',
typeAhead: false,
loadingText: 'Searching...',
emptyText:'Type in tag name...',
width: 470,
maxHeight: 200,
minChars : 0,
pageSize: 10,
tpl: resultTpl,
forceSelection:true,
queryDelay: 500,
valueNotFoundText : 'No Records Found'
});

jack.slocum
04-20-2007, 07:54 PM
emptyText and forceSelection are conflicting. I have submitted a change in SVN that attempts to work around the problem.

alindsay55661
04-20-2007, 09:58 PM
Awesome, thanks!