PDA

View Full Version : Element lost focus after blankText is shown



biskakov
30 Oct 2012, 8:50 PM
Hi everybody!
I have a problem, I have textField element with parameter allowBlank: false. When focus on textField and shows blankText like "This field is required" when its hides textField lost focus. I need that after blankText is shown textField didn't lose focus.

Thank you and sorry for my english!

P.S. I am using Extjs 4.1.1. and tested in 4.1.2a, same problem.

mitchellsimoens
1 Nov 2012, 9:29 AM
With 4.1.2 and 4.1.3 this works for me now (was a bug)


new Ext.form.Panel({
renderTo : document.body,
items : [
{
xtype : 'textfield',
fieldLabel : 'Test',
allowBlank : false,
value : 'a'
}
]
});

delete the a and get the qtip to show and field still has focus.

biskakov
1 Nov 2012, 7:31 PM
Thank you very much. I found the same post, maybe it would be interesting http://www.sencha.com/forum/showthread.php?183027-4.1.0-b3-Focus-lost-when-error-tooltip-displayed-on-modal-window-form/page2