{ "id": "140682", "key": "TIMOB-18112", "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-05-22T16:41:08.000+0000", "created": "2014-11-28T13:18:31.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "linvalid", "mobileweb", "tableview", "tableviewrow", "tableviewsection" ], "versions": [], "issuelinks": [], "assignee": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-24T20:48:55.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "h4. Test code\r\n\r\n{code:js}\r\n/*jslint node: true */\r\n\"use strict\";\r\n/*global Titanium */\r\n\r\nfunction rowClicked(e) {\r\n Titanium.API.trace(\"ROW CLICKED: e = \" + JSON.stringify(e));\r\n}\r\n\r\nvar with_sections = true,\r\n sectionOne = Titanium.UI.createTableViewSection({\r\n headerTitle: 'section_one'\r\n }),\r\n sectionTwo = Titanium.UI.createTableViewSection({\r\n headerTitle: 'section_two'\r\n }),\r\n tableview = Titanium.UI.createTableView({\r\n height: Titanium.UI.FILL,\r\n width: Titanium.UI.FILL,\r\n top: 0,\r\n showVerticalScrollIndicator: true,\r\n minRowHeight: 48,\r\n }),\r\n rowOne = Titanium.UI.createTableViewRow({\r\n title: 'row_one'\r\n }),\r\n rowTwo = Titanium.UI.createTableViewRow({\r\n title: 'row_two'\r\n }),\r\n win = Titanium.UI.createWindow({ backgroundColor: '#fff' });\r\n\r\nif (with_sections) {\r\n sectionOne.add(rowOne);\r\n sectionTwo.add(rowTwo);\r\n tableview.setData([sectionOne, sectionTwo]);\r\n} else {\r\n tableview.setData([rowOne, rowTwo]);\r\n}\r\ntableview.addEventListener('click', rowClicked);\r\nwin.add(tableview);\r\nwin.open();\r\n{code}\r\n\r\nh4. Behaviour under iOS\r\n\r\n- with_sections = true: responds to row clicks, prints sensible e object\r\n- with_sections = false: responds to row clicks, prints sensible e object\r\n\r\nh4. Behaviour under MobileWeb\r\n- with_sections = true: IGNORES row clicks\r\n- with_sections = false: responds to row clicks ALTHOUGH gives \"Uncaught TypeError: Converting circular structure to JSON\" error\r\n", "attachment": [], "flagged": false, "summary": "MobileWeb: TableView ignores clicks when sections are present", "creator": { "name": "rudolf@pobox.com", "key": "rudolf@pobox.com", "displayName": "Rudolf Cardinal", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "rudolf@pobox.com", "key": "rudolf@pobox.com", "displayName": "Rudolf Cardinal", "active": true, "timeZone": "Europe/London" }, "environment": "Titanium SDK 3.5.0 alpha; development under OS/X; testing under iOS 8.1 simulator or (for MobileWeb) Apache and Google Chrome version 38.0.2125.111 (64-bit)", "comment": { "comments": [ { "id": "427202", "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:48:55.000+0000", "updated": "2017-08-24T20:48:55.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }