Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Later
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): Mac
Affected OS(s): Mac OS 10.6
Browser: Firefox 3.x
Language Found: English
Description
Steps to reproduce:
1. Created a custom TextInput component to show a custom tooltip upon receiving focus.
2. Pleace custom TextInput component in a popup using the PopUpManager.
3. Give custom TextInput component focus to custom tooltip displays.
4. Close popup with custom tooltip still showing.
Actual Results:
Custom tooltip is left displaying on screen after popup closes.
Expected Results:
Custom tooltip should be removed by listening for Event.REMOVED or Event.REMOVED_FROM_STAGE on the custom component.
Workaround (if any):
The parent or dialog can close the custom tips on the Event.CLOSE handler, but this means that the parent / dialog needs to maintain a reference to the custom inputs or tips to destroy them. I would still expect vent.REMOVED or Event.REMOVED_FROM_STAGE to clean up the tips from within the custom component.
Notes:
This could very well be a "developer error", and if it is, I am completely fine admiting my shortcomings for a solution! In trying to track down what could be the issue, it appears that the "removeChild" method in SystemChlidrenList.as does not account for a custom tooltip (which is really a popup) in a popup dialog window, thus not finding the child to remove it.
- Sample project attached to ticket.
- Running example: http://dvlp.it/examples/ProblemCustomToolTip/ProblemCustomToolTip.html.
- Tested with revision 14184 from the Adobe Flex SDK repository.