I didn't look at your code yet, but try putting up the alert via
callLater.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Dmitri Girski
Sent: Thursday, February 21, 2008 8:24 AM
To: [email protected]
Subject: [flexcoders] ItemEditor looses focus and then crash

 

Hi Alex and all,

I was so inspired with the last victory over my focus problem
(http://tech.groups.yahoo.com/group/flexcoders/message/102706
<http://tech.groups.yahoo.com/group/flexcoders/message/102706> )
so I just went through the list of all focus related bugs.

I've got another case of some weird behaviour regarding the loosing
the focus.

Test case is very simple - editable DataGrid, click anywhere in the
cell, start editing and then press ESC key - the parent component
keyboard events handler will throw an Alert box. If you choose Yes
(discard changes and close the window) system crashes. 
Debugging shows that after Alert control has been closed Flex tries to
resume editing in DataGrid - it starts again with editBegin event and
then it crashes because system already started the removal of the
window.

The question is - what I am doing wrong? 

SWF: 
http://mitek.id.au/flex/TestItemEditorEsc.html
<http://mitek.id.au/flex/TestItemEditorEsc.html>  

Source code:
http://mitek.id.au/flex/TestItemEditorEsc.mxml
<http://mitek.id.au/flex/TestItemEditorEsc.mxml>  
http://mitek.id.au/flex/TestItemEditor.mxml
<http://mitek.id.au/flex/TestItemEditor.mxml> 

Thanks in advance!

Dmitri.

 

Reply via email to