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

iOS: 'click' event in Ti.UI.TextField is not working for iOS >= 11.x

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Not Our Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Story Points:
      1

      Description

      In iOS 10.x 'click' event is working fine for TI.UI.TextField but for iOS >= 11.x it is not working.
      On some experiment I found that in iOS >= 11.x there are restriction on touch event callbacks.

      Probably document need to be updated.

      Workaround to this issue is -
      Use 'touchstart' event or set 'enabled' property to false.

      Test Case -

            var win = Ti.UI.createWindow({
      	    backgroundColor: '#fff'
      	});
      	
      	var textField = Ti.UI.createTextField({
      	    top: 120,
      	    hintText: 'Trigger',
      	    backgroundColor: 'yellow',
      	    //enabled: false
      	});
      	
      	textField.addEventListener('touchstart', function() {
      	    Ti.API.info('touchstart event fired');
      	});
      	
      	textField.addEventListener('click', function() {
      	    Ti.API.info('click event fired');
      	});
      	
      	win.add(textField);
      	win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              vijaysingh Vijay Singh
              Reviewer:
              Jan Vennemann
              Tester:
              Samir Mohammed
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration