Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Browser: Internet Explorer 8.x
Language Found: English
Description
Steps to reproduce:
1. Create a new Flex application with the Halo theme.
2. Create a new popup class extending from TitleWindow.
3. Give the popup two input fields, and in the creation complete event handler for the popup set focus to one input field, then hide the other.
(a small test case is attached)
Actual Results:
- The field which was set to be focused does not have focus. If this field was a required field, validation will fail and the field gains a red outline, which suggests that the field did gain focus at some point, but then lost it.
Expected Results:
- The field which was set to be focused should have focus. Validation should not be triggered on this field.
Workaround (if any):
- Hide any unnecessary components on the popup before setting an initial focus.
Additional Info:
- I suspect the problem is in FocusManager::childHideHandler. A "target" variable is initialized to the component being hidden, but never used. I think it would make more sense to compare the target against the current focus and only clear the focus if they are the same.