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

Windows: TextField/TextArea should not receive focus by default when a window is opened

    Details

    • Story Points:
      8
    • Sprint:
      2019 Sprint 12, 2019 Sprint 13

      Description

      Behavior

      TextField should not receive focus right after Windows is opened to match iOS's behavior.

      Test case

      var window = Ti.UI.createWindow();
      var textField = Ti.UI.createTextField({
      	value: "Focus Test",
      	width: Ti.UI.FILL,
      	height: Ti.UI.SIZE,
      });
      textField.addEventListener("focus", function(e) {
      	Ti.API.info("@@@ TextField 'focus' event received. bubbles: " + e.bubbles);
      });
      textField.addEventListener("blur", function(e) {
      	Ti.API.info("@@@ TextField 'blur' event received. bubbles: " + e.bubbles);
      });
      window.add(textField);
      window.open();
      

      Expected: No focus log should be shown after app launched and TextField should not have focus.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi (Inactive)
                Reporter:
                goyalpankaj054@gmail.com Pankaj Goyal
                Reviewer:
                Gary Mathews
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code