-
4 Aug 2010 7:36 AM #1
[FIXED-1178] Spinner field with focus has undefined dom when destroyed
[FIXED-1178] Spinner field with focus has undefined dom when destroyed
Ext version tested:
Ext 3.2 rev 2
Adapter used:
ext
css used:
only default ext-all.css
Browser versions tested against:
FF3 (firebug 1.5.4 installed)
Operating System:
WinXP Pro
Description:
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:
Code:
Steps to reproduce the problem:Code: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' }] }); w.show(); Ext.getCmp('test-spinner-field').focus(true,100); (function(){ Ext.Msg.alert('Alert','Message'); w.close.defer(100,w); }).defer(2000);- 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:
none
Possible fix:
Remove the 'mousedown' listener for the document upon destroy.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-195] Cannot read property 'params' of undefined" when AjaxProxy is destroyed
By orangechicken in forum Sencha Touch 1.x: BugsReplies: 3Last Post: 1 Sep 2010, 7:14 PM -
[FIXED-596] Spinner field misses every second click in IE
By stephen.friedrich in forum Ext 3.x: BugsReplies: 1Last Post: 18 Feb 2010, 10:18 AM -
is closable Ext.Window destroyed from dom on close?
By andynuss in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 22 Oct 2009, 3:48 AM -
[FIXED][3.0 SVN] 'this.dom' is undefined in Ext.form.TriggerField
By SamuraiJack1 in forum Ext 3.x: BugsReplies: 11Last Post: 30 Jul 2009, 2:54 AM


Reply With Quote