PDA

View Full Version : [DUP] [EXT 4.1.3] Modal window focus bug



dsdrudge
18 Apr 2013, 9:57 AM
This bug is quite similar to: http://www.sencha.com/forum/showthread.php?261156-EXT-4.2-Modal-window-bug

Ext version:
4.1.3

Browser versions tested against (on Ubuntu):

Chrome 26.0.1410.63
Firefox 20
Expected result

Second modal window should open on top
Actual result

the focus flickers between the two windows
Description:
Creating 2 modal windows in quick succession causes the two windows to fight for focus. The view flickers back and forth between the two windows. Adding a delay of 10ms between showing the two windows fixes the problem (9ms does not).

Test case


var timeout = 9;
new Ext.Window({
modal: true,
title: 'Hello',
height: 200,
width: 400,
items: {
html: "blah"
}
}).showAt(0,0);
setTimeout(function(){
new Ext.Window({
modal: true,
title: 'Hello',
height: 200,
width: 400,
items: {
html: "on top"
}
}).showAt(0,0);
}, timeout);

slemmon
18 Apr 2013, 12:30 PM
Thanks for the report!
I'm linking the two reports.

zolta.szekely
14 Jan 2014, 3:14 AM
Thank you for the workaround, it works in our case too (we needed deferring opening with around 100 microseconds).

However, this is a just a workaround, a fix is needed. When will the issue be fixed in Ext JS Framework?