flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Kessler (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-26157) Flex 4 Spark TextInput Issue
Date Sat, 20 Apr 2013 21:37:15 GMT

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

Mark Kessler resolved FLEX-26157.

    Resolution: Not A Problem

Tested with the below application.  Problem no longer occurs as of the current Flex-SDK. 
Jeremy Wischusen has also tested and produced the same results.

<?xml version="1.0" encoding="utf-8"?>
   Test application
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark" > 

        <s:VerticalLayout horizontalAlign="center" verticalAlign="middle" gap="0" />

    <s:HGroup width="100%" horizontalAlign="center">
        <s:TextInput id="ti" displayAsPassword="true" change="trace(ti.text)"/>
        <s:Button label="Check"  click="trace('checking: ' + ti.text);"/>

> 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
>            Assignee: Mark Kessler
>              Labels: easytest
>         Attachments: Screen Shot 2013-04-18 at 8.10.17 AM.png
>       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
> 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

View raw message