{ "id": "109536", "key": "TIMOB-12668", "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": "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": "2017-05-24T18:02:36.000+0000", "created": "2013-02-12T01:30:43.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "25714", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "109537", "key": "TIMOB-12669", "fields": { "summary": "MobileWeb: Parity of enabled property ", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "25715", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "109538", "key": "TIMOB-12670", "fields": { "summary": "Android: Parity of enabled property ", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-24T18:02:57.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": "Run the following code on the iOS simulator:\r\n{code}\r\nvar VIEW_STATE = false;\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor: 'white', layout: 'vertical'});\r\n\r\nvar button = Ti.UI.createButton({title: 'Button', enabled: VIEW_STATE, top: '10dp'});\r\nbutton.addEventListener('click', function(e){ Ti.API.info('button:' + e.type)});\r\nwin.add(button);\r\n\r\nvar switcher = Ti.UI.createSwitch({enabled: VIEW_STATE, top: '10dp'});\r\nswitcher.addEventListener('click', function(e){ Ti.API.info('switcher:' + e.type)});\r\nwin.add(switcher);\r\n\r\nvar slider = Ti.UI.createSlider({\r\n\ttop: '10dp',\r\n min: 0,\r\n max: 100,\r\n width: '250dp',\r\n value: 50,\r\n enabled: VIEW_STATE,\r\n focusable: true\r\n});\r\nslider.addEventListener('click', function(e){ Ti.API.info('slider:' + e.type)});\r\nwin.add(slider);\r\n\r\nvar textarea = Ti.UI.createTextArea({\r\n\tvalue: 'TextArea',\r\n\tenabled: VIEW_STATE,\r\n\ttop: '10dp'\r\n});\r\ntextarea.addEventListener('click', function(e){ Ti.API.info('textarea:' + e.type)});\r\nwin.add(textarea);\r\n\r\nvar textfield = Ti.UI.createTextField({\r\n\twidth: '250',\r\n\theight: '60',\r\n\tenabled: VIEW_STATE,\r\n\ttop: '10dp',\r\n\tborderWidth: 1\t\r\n});\r\ntextfield.addEventListener('click', function(e){ Ti.API.info('textfield:' + e.type)});\r\nwin.add(textfield);\r\n\r\nwin.open();\r\n{code}\r\n\r\nResults:\r\n\r\nOn iOS, when enabled is set to false, click events fire for Switch, Slider, TextArea and TextField. Button does not fire the click event.\r\n\r\nOn Android, no click events are fired and on MobileWeb, the click events only fire for TextArea and TextField.\r\n\r\nExpected Results:\r\nClick events should not fire if these elements are disabled.\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Parity of enabled property ", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS X 10.7.5\r\nTitanium SDK version: 3.1.0 (02/11/13 17:10 68a0fef)\r\nTitanium Studio, build: 3.0.1.201212181159\r\niOS SDK 6.0\r\n", "comment": { "comments": [ { "id": "243871", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\niOS iPhone Simulator: iOS SDK version: 6.0\nDevice: Samsung galaxy s duos Android version: 4.0.4\njithinpv\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-25T07:25:29.000+0000", "updated": "2013-03-25T07:25:29.000+0000" }, { "id": "420349", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce this issue, tested with the following environment;\r\niPhone 7 (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.9.0.201705021158\r\nTi SDK 6.1.0.v20170519131839\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-24T18:02:36.000+0000", "updated": "2017-05-24T18:02:36.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }