[
https://issues.apache.org/jira/browse/FLEX-33537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Kessler reassigned FLEX-33537:
-----------------------------------
Assignee: Mark Kessler
> Spark TextArea writing in prompt text format
> --------------------------------------------
>
> Key: FLEX-33537
> URL: https://issues.apache.org/jira/browse/FLEX-33537
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: TextArea, Spark: TextInput
> Affects Versions: Apache Flex 4.9.0
> Reporter: Curtis Aube
> Assignee: Mark Kessler
>
> Initialize a s:TextArea, set the prompt text to something and set the text to
> something. Sometime later set the text to empty string, remove the TextArea
> from the display, add it to back the display and set focus on it. The next
> time you type, you will be typing in the prompt text format.
> Ex.
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application minHeight="600" minWidth="955"
> xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:mx="library://ns.adobe.com/flex/mx"
> xmlns:s="library://ns.adobe.com/flex/spark">
> <fx:Script>
> <![CDATA[
> private function selectTextArea():void
> {
> testTextArea.text = "";
> box.removeAllElements();
> box.addElement(testTextArea);
> testTextArea.setFocus();
> }
> ]]>
> </fx:Script>
> <s:VGroup>
> <s:HGroup>
> <s:Button label="Break text area"
> click="{selectTextArea()}"/>
> </s:HGroup>
> <s:HGroup id="box">
> <s:TextArea id="testTextArea" text="Some text"
> prompt="Enter something..."/>
> </s:HGroup>
> </s:VGroup>
> </s:Application>
> Another issue is: If you try to set the focus before removing and adding the
> TextArea, the focus rectangle doesn't show up.
> Workaround: Don't set the focus immediately after adding the TextArea such as
> using callLater.
--
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