Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24053

Android: passwordMask property cannot be changed after rendering (Regression)

    Details

    • Story Points:
      3
    • Sprint:
      2016 Sprint 22 SDK

      Description

      When using the following JS and XML on 5.2.2GA, I am successfully able to toggle the passwordMask for both iOS and Android to show/hide the text in the TextField.

      When I simply change my sdk to 5.5.1GA, iOS continues to work, but Android no longer works. The "mask" never toggles. It also appears it doesn't work for Android in 5.4.0GA either.

      index.xml
      ========
      <Alloy>
      <Window class="container">
      <View layout="horizontal" width="99%" height="54">
      <TextField id="password" color="#000000" autocorrect="false" hintText="password" width="50%" clearButtonMode="Titanium.UI.INPUT_BUTTONMODE_ALWAYS" passwordMask="true" />
      <TextField value="show/hide" color="#000000" id="passwordVisible" width="49%" editable="false" touchEnabled="true" onClick="togglePasswordVisible" />
      </View>
      </Window>
      </Alloy>

      index.js
      ========
      isPasswordVisible = false;

      function togglePasswordVisible(){
      if (isPasswordVisible)

      { $.password.passwordMask = true; isPasswordVisible = false; }

      else

      { $.password.passwordMask = false; isPasswordVisible = true; }

      }

      $.index.open();

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              amwinsauto Adam Armstrong
              Reviewer:
              Christopher Williams
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10218
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration