PDA

View Full Version : [FIXED] Modern FW in Metro App crashing in Ext.viewport.Default.doBlurInput.



FBNitro
11 May 2015, 8:34 AM
Occasionally, while running Sencha Ext JS6 in Modern FW, in a Windows Metro app, it's crashing on a 'blur()' call in Ext.viewport.Default. It seems to do so if I click too fast.


doBlurInput: function(e) {
var target = e.target,
focusedElement = this.focusedElement;
//In IE9/10 browser window loses focus and becomes inactive if focused element is <body>. So we shouldn't call blur for <body>
if (focusedElement && focusedElement.nodeName.toUpperCase() != 'BODY' && !this.isInputRegex.test(target.tagName)) {
delete this.focusedElement;
focusedElement.blur();
}
},


It's getting to a point where focusedElement is set, but does not have a blur() function defined (focused element is a leaflet.js item in this case). I think there should be a check to see if blur() is defined before calling it.

mitchellsimoens
11 May 2015, 9:25 AM
Can I see a test case to see your code that the error is triggered on?

FBNitro
27 May 2015, 10:36 AM
Can I see a test case to see your code that the error is triggered on?

It's just too much code for me to get a fiddle together. I moved up to the Beta, seem to be having the same issue here. I'll keep trying when I get some free time.

Unhandled exception at line 75311, column 13 in ms-appx://myapp/www/app.js
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'blur'

FBNitro
1 Jun 2015, 12:34 PM
I have determined that the item it's trying to blur is an svg... not sure if that's helpful. Still trying to get something to reproduce it.

FBNitro
8 Oct 2015, 9:13 AM
This issue has been resolved in 6.0.1, it no longer occurs.