PDA

View Full Version : Yet Another TriggerField onBlur issue



droesler
26 Feb 2010, 11:45 AM
I'm using extjs 3.1 and I have a TriggerField defined as follows



var myField = new Ext.form.TriggerField(
{
fieldLabel : 'My Field',
name : 'myField',
id : 'myField',
'triggerClass' : 'x-form-search-trigger',
autoCreate : {tag: 'input', type: 'text', maxlength: '60'},
style : {textTransform: 'uppercase'},
'onTriggerClick': checkField1,
listeners: {
'blur': checkField1
}
}
);


The checkField1 function may open a window with a grid for the user to select a value.
In FF, Opera and Chrome any mouse click not directly on the grid in the opened window will cause the grid to reload because the onBlur event is triggered. In IE I get the behavior I expected. The window opened is a model window as well.

Is there a way to prevent the behavior in FF, Opera and Chrome?

Thanks

Dennis