Flex 4.6 TextInput with hint on ios misbehaves

In ios, TextInput creates weirdness. The following code:

        <s:TextInput id="password" width="100%" displayAsPassword="true"
                     needsSoftKeyboard="true" 
                     prompt="Password"  
                     softKeyboardType="default"
                     returnKeyLabel="done"
                     autoCorrect="false"
                     skinClass="spark.skins.mobile.TextInputSkin"
                     />

When I select textInput, the tooltip disappears as expected, but the first character is selected automatically. When you press the second key, the first character is deleted. This only happens when the first character is dialed and the field has a message with a hint. "autoCorrect" doesn't seem to do anything.

Does anyone know of a workaround to this problem? I looked at the SkinnableTextBase class, but cannot find any guilty code.

These problems started with Flex 4.6.

+5
source share
3 answers

Flex, , Flex . Air 3.2 ( Air 3.3 beta). Air 3.1, .

, , , Air 3.2+. , , , Air 3.2, : (

[]

- SkinnableTextBase.as Flex SDK.

textDisplay_changeHandler (: ), invalidateSkinState(). (""), :

skin.currentState = "";
invalidateSkinState();

, ( h @ck).

"showPromptWhenFocused" false CSS, ; , , textInput.

s|TextInput
{
    skinClass:ClassReference("spark.skins.mobile.TextInputSkin");
    showPromptWhenFocused: false;
}

, -.

+14

Textinput FB4.6 Air3.5. , Air. Softkeyboard , .

<s:TextInput id="mail"  softKeyboardType="email" skinClass="spark.skins.spark.TextInputSkin" />
+3

TextInput? , Flex 4.6 TextInput. StageText, . skinclass= "spark.skins.mobile.TextInputSkin", .

<s:TextInput id="password" width="100%" displayAsPassword="true"
                 needsSoftKeyboard="true" 
                 prompt="Password"  
                 softKeyboardType="default"
                 returnKeyLabel="done"
                 autoCorrect="false"
                 />

. StageText , TextInput, Flex 4.5, .

0
source

All Articles