{ "id": "99981", "key": "TIMOB-10686", "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": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-27T08:53:57.000+0000", "created": "2012-08-28T06:47:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "look1", "qe-ios082012" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-28T17:23:41.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": "This is not a regression.'Click' event did not fired at all till 2.1.2.\r\n\r\nTill 2.1.2, no 'click' event is fired on textfield.\r\nIn 2.2.0, when 'click' and 'focus' both events are added to a textfield, 'click' event always gets fired on clicking textfield. So the user is unable to edit the textfield.\r\n\r\nNote: Sometimes both event fire for the first time. But afterwards,it follows the bug.\r\n\r\nSteps to reproduce.\r\n1. Run the code below on simulator\r\n{code}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff', title: 'Focus Consistency Test' });\r\n\r\nvar textField = Ti.UI.createTextField({\r\n top: 50, left: 10, right: 10,\r\n height: 50,\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,\r\n});\r\n\r\nwin.add(textField);\r\n\r\ntextField.addEventListener('focus',function(){\r\n\talert('tf focus fired');\r\n});\r\ntextField.addEventListener('click',function(){\r\n\talert('tf click fired');\r\n});\r\n\r\nvar textField1 = Ti.UI.createTextField({\r\n top: 120, left: 10, right: 10,\r\n height: 50,\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n //focusable : false\r\n});\r\n\r\ntextField1.addEventListener('focus',function(){\r\n\talert('tf1 focus fired');\r\n});\r\n\r\nvar textField2 = Ti.UI.createTextField({\r\n top: 220, left: 10, right: 10,\r\n height: 50,\r\n borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED\r\n //focusable : false\r\n});\r\n\r\ntextField2.addEventListener('click',function(){\r\n\talert('tf2 click fired');\r\n});\r\n\r\nwin.add(textField1);\r\nwin.add(textField2);\r\nwin.open();\r\n{code}\r\n\r\n2. Click the top most textfield(tf)\r\n3. Click the middle textfield(tf1)\r\n4. Click the bottom most textfield(tf2)\r\n\r\nExpected result\r\n2. Afte step 2, the focus and click event should get fired on textfield and it should become editable.\r\n3. After step 3, the focus event should get fired on textfield and it should become editable.\r\n4. After step 4, the 'click' event should get fired on textfield and it should become editable.\r\n\r\nActual result\r\n2. Afte step 2, the click event is fired on textfield and it do not becomes editable.\r\n3. After step 3, the focus event gets fired on textfield and it becomes editable.\r\n4. After step 4, the 'click' event gets fired on textfield and it do not becomes editable.", "attachment": [], "flagged": false, "summary": "iOS:Textfield:'Click' event always taking precedence to 'Focus' event,making textfield un-editable.", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Titanium SDK: 2.1.2.v20120821160113 , 2.2.0.v20120827143312\r\nTested with Titanium  Studio: 2.1.2.201208201549\r\nDevice - iPad 3 iOS 5.1\r\nMachine OS - MAC 10.7.3", "comment": { "comments": [ { "id": "244269", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\niOS iPhone Simulator: iOS SDK version: 5.1, 6.0\r\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T08:53:57.000+0000", "updated": "2013-06-20T13:39:39.000+0000" }, { "id": "416012", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can verify this ticket as \"Cannot Reproduce\". Tested with the following environment;\r\niPhone 7 (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T17:23:41.000+0000", "updated": "2017-03-28T17:23:41.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }