PDA

View Full Version : [DUPE-EXTJSIV-204] Combobox emptyText not displayed in IE



KeeKee
26 Mar 2011, 2:26 AM
I've noticed that 'emptyText' is not displayed in IE (tested under: 6, 7, 8 and 9) - any other browsers are fine.
Combobox is rendered without this text (just an empty imput field) if I put in code this:

Ext.getCmp('formLoginGroup').setValue( Ext.History.getHash() );
It was just for test purposes, but it should put this text if the hash is empty (setting empty value).

Add note: When I'll remove the above line with setValue everything is just fine. Just when it being set it doesn't display okay.

Screenshots:
http://dl.dropbox.com/u/1285980/ext4-combo-firefox.png
http://dl.dropbox.com/u/1285980/ext4-combo-ie.png

and a short code for combobox definition if anyone wants to test it:

xtype: 'combo',
fieldLabel: 'Grupa',
id:'formLoginGroup',
displayField: 'group',
name: 'group',
emptyText: 'Wybierz grup?...',
store: Ext.create('Ext.data.Store', {
fields: ['group'],
data : [{'group':'Student'},{'group':'Employee'}]
}),
queryMode: 'local'

Jamie Avins
26 Mar 2011, 7:52 AM
Dupe: http://www.sencha.com/forum/showthread.php?127337-PR4-Blank-voice-in-combo-in-IE