PDA

View Full Version : [INFOREQ]3.0 combobox: click in empty field doesn't trigger



clf
4 Aug 2009, 1:55 PM
I'm upgrading an app from 2.2 -> 3.0 and I'm trying to restore the 2.2 combobox behavior.

In 2.2, a click inside a blank, non-editable combobox field (not the trigger handle), would clear the emptyText message, then trigger the combobox to expand.

In 3.0, a click inside a blank, non-editable combobox field (not the trigger handle), clears the emptyText message, but DOES NOT trigger the combobox to expand. Only a second click inside the field will trigger the combobox to expand.

How do I restore the 2.2 behavior?

I tried adding a focus listener to the combobox that calls expand() if the field is blank, but for some reason it only shows an empty list.

Below, I've listed the config options I'm using for the combobox.

Any help restoring combobox 2.2 behavior to the 3.0 library would greatly be appreciated.

Thanks!

-CLF

----

combobox config:

stateful: true,
stateId: some_id_str,
stateEvents: ['select'],
xtype: 'combo',
lazyInit: false,
name: some_name_str,
fieldLabel: some_label_str,
store: some_store_ext,
mode: 'local',
editable: false,
displayField: some_fieldname_str,
valueField: some_id_str,
emptyText: some_message_str,
allowBlank: false,
triggerAction: 'all'
http://extjs.com/forum/images/misc/progress.gif http://extjs.com/forum/images/buttons/edit.gif (http://extjs.com/forum/editpost.php?do=editpost&p=368517)

mjlecomte
4 Aug 2009, 2:27 PM
Please provide a working test case as described in this thread:
http://extjs.com/forum/showthread.php?t=71015