0
votes

We have a basic combo box

http://www.samuellevy.com/blog/2010/10/senchaextjs-combo-box-gotchas-and-how-fix-them

we don't want that the fieldLabel when you click it , the focus go to the combobox

Any one can help me thank you !

1
Just curious, why? I think it will be very confusing for the user...sha

1 Answers

1
votes

Add this listener to your Combo config:

xtype: 'combo',
id: 'myCombo',
listeners: {
    render: function(obj) {
        Ext.get(obj.id+'-labelEl').on('click',function(e) {
            e.preventDefault();
        });
    }
}