I’ve been struggling with this one ever since Macromedia released their V2 components. The PopUpManager appears to be giving me all sorts of focus problems with different text field components. Here’s basically what happens. Look at the Flex example below and click on the “Focus with PopupManager” button. When the popup is created and the form is displayed you’ll see that the text field has focus. You can even start typing and the field receives the input. Now here’s the kicker. Try to put your mouse into the field and select some of the text you typed. You’ll see that the text is highlighted, but once you release the mouse button the selection is lost. What’s even crazier is if you click anywhere on the popup window outside of the text field and then try selecting the text again it works.
I wanted to rule out a problem with the text field so click on the “Focus without PopupManager” button. This basically loads a similar form into a Loader component. You’ll see that the text selection works in this instance. Strange. It appears to be an issue with the PopUpManager. I’m going to contact Macromedia and see if they can shed some light. This might seem minor, but it’s seriously limiting the usability of our application.