View Full Version : [FIXED-1178] Spinner field with focus has undefined dom when destroyed

4 Aug 2010, 7:36 AM
Ext version tested:
Ext 3.2 rev 2

Adapter used:

css used:
only default ext-all.css

Browser versions tested against:
FF3 (firebug 1.5.4 installed)

Operating System:
WinXP Pro

Describe the problem in greater detail here, summarizing the behavior.

In my application, I have a form that contains a spinner field. If the user leaves focus on the spinner field and walks away, the page will eventually time out, destroy the form, and log out. When the log out occurs, a message box is displayed to the user. Once you close the message box, the spinner field that should be destroyed already attempts to execute the mimicBlur function, which leads to an undefined error because the field's dom has been destroyed.

Test Case:


var w = new Ext.Window({
height: 100
,width: 400
,title: 'Test spinner field - destroy focus'
,items: [{
items: [{
anchor: '100%'
,fieldLabel: 'Spinner'
,id: 'test-spinner-field'
,xtype: 'spinnerfield'
,xtype: 'form'



Steps to reproduce the problem:

Run the test code and wait for the delay (2 seconds)
Click the OK on the message box
The error "this.dom is undefined" occurs.

The result that was expected:
No error :)

The result that occurs instead:
this.dom is undefined

Screenshot or Video:

Debugging already done:

Possible fix:
Remove the 'mousedown' listener for the document upon destroy.