{ "id": "174625", "key": "TIMOB-27717", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2020-06-11T11:00:32.000+0000", "created": "2020-01-10T18:56:19.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "engTriage", "textfield" ], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-06-30T10:14:31.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "In iOS 10.x 'click' event is working fine for TI.UI.TextField but for iOS >= 11.x it is not working.\r\nOn some experiment I found that in iOS >= 11.x there are restriction on touch event callbacks.\r\n\r\nProbably document need to be updated.\r\n\r\nWorkaround to this issue is -\r\nUse 'touchstart' event or set 'enabled' property to false.\r\n\r\nTest Case - \r\n\r\n{code:java}\r\n var win = Ti.UI.createWindow({\r\n\t backgroundColor: '#fff'\r\n\t});\r\n\t\r\n\tvar textField = Ti.UI.createTextField({\r\n\t top: 120,\r\n\t hintText: 'Trigger',\r\n\t backgroundColor: 'yellow',\r\n\t //enabled: false\r\n\t});\r\n\t\r\n\ttextField.addEventListener('touchstart', function() {\r\n\t Ti.API.info('touchstart event fired');\r\n\t});\r\n\t\r\n\ttextField.addEventListener('click', function() {\r\n\t Ti.API.info('click event fired');\r\n\t});\r\n\t\r\n\twin.add(textField);\r\n\twin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: 'click' event in Ti.UI.TextField is not working for iOS >= 11.x ", "creator": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "454457", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/11504", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-02-26T22:37:30.000+0000", "updated": "2020-02-26T22:37:30.000+0000" }, { "id": "454549", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged docs-only change to master, which will go live to docs site later today. Not sure if we want to mark this as closed \"Not our Bug\" or \"Won't Fix\" or something since it's an iOS/Apple issue?", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-03-04T19:03:36.000+0000", "updated": "2020-03-04T19:03:36.000+0000" }, { "id": "454550", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think we should mark as 'Not our Bug' . ", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-04T19:55:35.000+0000", "updated": "2020-03-04T19:55:35.000+0000" }, { "id": "455755", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as 'Not our Bug' ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-11T10:59:35.000+0000", "updated": "2020-06-11T10:59:35.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }