flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-26157) Flex 4 Spark TextInput Issue
Date Wed, 17 Apr 2013 03:15:16 GMT

     [ https://issues.apache.org/jira/browse/FLEX-26157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Justin Mclean updated FLEX-26157:
---------------------------------

    Labels: easytest  (was: )
    
> Flex 4 Spark TextInput Issue
> ----------------------------
>
>                 Key: FLEX-26157
>                 URL: https://issues.apache.org/jira/browse/FLEX-26157
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: TextInput
>    Affects Versions: Adobe Flex SDK 4.1 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easytest
>
>       I have found a problem with the spark TextInput component.
>  
> If the TextInput displayAsPassword variable is set to true and the user places a string
of characters into the component but then highlights the whole string of characters and pastes
a shorter string of characters in, the shorter string of characters only replaces the amount
of characters that the pasted string has and maintains the rest of the characters of the longer
string.
> Steps to reproduce:
> 1. Put "paul@podpea.co.uk" into the TextInput, 
> 2. Highlight the entire string, 
> 3. Paste "blah" into the TextInput
> 4. trace out the "text" property of the TextInput. You should get "blah@podpea.co.uk".
The paste has only replaced the first four characters of the original string but only four
characters appear in the TextInput field.
>  
> I have included some simple code so that you can check this for yourself. If you follow
the example above and then press the "Check" button the Alert box will tell you what is actually
in the TextInput field:
>  
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>                xmlns:s="library://ns.adobe.com/flex/spark"
>                xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
>     <fx:Script>
>         <![CDATA[
>             import mx.controls.Alert;
>         ]]
>       >
>     </fx:Script>
>     <s:HGroup width="100%" horizontalAlign="center">
>         <s:TextInput
>             id="ti"
>             displayAsPassword="true"
>             change="trace(ti.text)"/>
>         <s:Button
>             label="Check"
>             click="Alert.show(ti.text);"/>
>     </s:HGroup>
>    
>    
> </s:Application>
>     

--
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

Mime
View raw message