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

Android: TextField's focusable property does not take effect after setting it to false once.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.4.0, Release 5.3.1
    • Fix Version/s: None
    • Component/s: None

      Description

      index.xml

      <Alloy>
      	<Window backgroundColor="black">
      	    <TextField left="20" right="20" color="white" backgroundColor="#aaa" borderWidth="1" borderColor="white" id="OTHER_FIELD" hintText="Focus + Edit" />
      	    
      	    <Button onClick="noFocusNoEdit" bottom="70">No-FOCUS + No-EDIT</Button>
      	    <Button onClick="focusEdit" bottom="20">FOCUS + EDIT</Button>
      	</Window>
      </Alloy>
      

      index.js

      function noFocusNoEdit() {
          $.OTHER_FIELD.focusable = false;
          $.OTHER_FIELD.editable = false;
          $.OTHER_FIELD.hintText = 'No-Focus + No-Edit';
      }
       
      function focusEdit() {
          $.OTHER_FIELD.focusable = true;
          $.OTHER_FIELD.editable = true;
          $.OTHER_FIELD.hintText = 'Focus + Edit';
      }
       
      $.index.open();
      
      

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain (Inactive)
              Reporter:
              prashant_saini_1 Prashant Saini
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration