I have a combo box that is configured to transfer focus to another form element right after the user selects a value with this configuration:
new Ext.form.ComboBox({ // ... listeners: { select: function( a, record ) { if ( typeof( record ) == 'undefined' ) { return; } if ( !Ext.getCmp('input-name').getValue() ) { Ext.getCmp('input-name').focus(); } }, blur: function() { console.log('blurred'); }, render: function( field ) { if ( !config.activity ) { field.onTriggerClick(); } } }, // ... });
However, a strange thing happens. The name-name field gets focus, and I can start typing it, but the combo field will never be blurred. It still has an x-form-focus style, and the blur event never fires. Only when I use the mouse to click another field, the combo is fuzzy.
Does anyone know what is happening and how can I get around this?
source share