View Full Version : EditorGridPanel -delay in firing Blur Event causes Bug

21 Apr 2011, 12:39 AM
[LEFT]I have EditorGridPanel inside the Ext.Window with a Save button . When editing some field and clicking the Save button right away (without explicitly leaving the Editor with Tab or Enter ) , the grid store will be updated after the Save button handler , and thus non-updated data will be posted to server .
The cause for this in my opinion is the following line in the initEvents method of Ext.form.Field:

this.mon(this.el, 'blur', this.onBlur, this, this.inEditor ? {buffer:10} : null);

[FONT=Calibri][SIZE=3]The 10 mili-seconds delay causes the save button handler to fire before the

25 May 2011, 1:30 AM
So, no response or suggestions from the Ext team ?

(By the way this bug randomly happens under Ext 4 either )

21 Jul 2011, 11:50 AM
I'm seeing the same problem in IE8. Haven't seen the problem in IE9 or Firefox.

I was able to resolve the problem by calling stopEditing() on the grid inside the button handler.