Flex focusOut event on TextInput and pop-up does not remove focus? -
i have flex app several fields , 1 text field focusout event:
<mx:formitem label="last" x="226" y="1"> <s:textinput id="lastnameclienttextinput" text="@{_currenteditclient.lastname}" change="textfieldchangecapitalize(event)" focusout="lastnameclienttextinput_focusouthandler(event)"/> </mx:formitem>
as expected, when tab or click out of field after typing value executes "lastnameclienttextinput_focusouthandler" method pops-up new window:
protected function lastnameclienttextinput_focusouthandler(event:focusevent):void { clientsearchpopup = new clientlistwindow(); popupmanager.addpopup(clientsearchpopup, this, true); popupmanager.centerpopup(clientsearchpopup); }
that window "popupmanager.removepopup(this);" when user clicks close button.
however, problem when window closes, focus on lastnameclienttextinput! unable click or tab out of field!
when tab out see ibeam cursor move last name field next field in tab order (address) , window pops-up. when close window moves last name field , highlights value.
it if need validate focusout event?
you might want try using valuecommit rather focusout. listen popup being removed , set focus manually.
hth;
amy
Comments
Post a Comment