[
https://issues.apache.org/jira/browse/FLEX-33293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13529044#comment-13529044
]
Maxime Cowez commented on FLEX-33293:
-------------------------------------
The reason for this bug seems to be that a SkinnableTextBase component inside a
PopUpAnchor does not have a `focusManager`. This property is used inside
`getCurrentSkinState()` and because it's not there the "WithPrompt" states are
never reached.
So a simple workaround for the issue is to pass in an `IFocusManager` from
somewhere else, like this:
<s:PopUpAnchor displayPopUp="true">
<s:VGroup>
<s:TextInput prompt="test" focusManager="{focusManager}"/>
<s:ComboBox prompt="test" focusManager="{focusManager}"/>
<s:TextArea prompt="test" focusManager="{focusManager}"/>
</s:VGroup>
</s:PopUpAnchor>
> Prompt not displayed when component is inside a PopUpAnchor
> -----------------------------------------------------------
>
> Key: FLEX-33293
> URL: https://issues.apache.org/jira/browse/FLEX-33293
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: ComboBox, Spark: PopUpAnchor, Spark: TextArea,
> Spark: TextInput
> Affects Versions: Apache Flex 4.8 (parity release)
> Reporter: Maxime Cowez
> Priority: Minor
>
> When you use an input component that has a `prompt` property in combination
> with a PopUpAnchor, the prompt text is never displayed.
> Easily reproduced:
> <s:PopUpAnchor displayPopUp="true">
> <s:VGroup>
> <s:TextInput prompt="test prompt in PopupAnchor"/>
> <s:ComboBox prompt="test prompt in PopupAnchor"/>
> <s:TextArea prompt="test prompt in PopupAnchor"/>
> </s:VGroup>
> </s:PopUpAnchor>
> "test prompt in PopupAnchor" is not displayed in any of the components.
> The bug does not affect DropDownList though; so basically it seems to affect
> only those components that inherit from or compose a SkinnableTextBase.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira