{ "id": "109537", "key": "TIMOB-12669", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-26T22:07:10.000+0000", "created": "2013-02-12T01:31:28.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" }, "outwardIssue": { "id": "109536", "key": "TIMOB-12668", "fields": { "summary": "iOS: 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-08-24T20:54:54.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" }, { "id": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Test the following code with Chrome:\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 Mobile Web, when enabled is set to false, click events fire for TextArea and TextField. Switch, Slider and Button do not fire the click event.\r\n\r\nOn Android, no click events are fired and on iOS, the click events fire for Switch, Slider, 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": "MobileWeb: 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\nGoogle Chrome Version 24.0.1312.57\r\n", "comment": { "comments": [ { "id": "243880", "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\n\njithinpv\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-25T09:18:20.000+0000", "updated": "2013-03-25T09:18:20.000+0000" }, { "id": "427213", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Mobile Web has been deprecated and will be removed in fixVersion 7.0.0.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-24T20:54:54.000+0000", "updated": "2017-08-24T20:54:54.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }