{ "id": "109902", "key": "TIMOB-12791", "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-04-05T08:34:15.000+0000", "created": "2013-02-20T02:35:35.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam" ], "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:24:23.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": "h4. Problem Description\r\nYou will get the event click twice when using a label inside a tableviewrow inside the popoever. It only happens the second time you click the label. \r\n\r\nh4. Code example\r\n{code}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\nvar win1 = Ti.UI.createWindow({\r\n\ttitle:'test1'\r\n});\r\nvar tab1 = Ti.UI.createTab({\r\n\ttitle:'test1',\r\n\twindow:win1\r\n});\r\nvar win2 = Ti.UI.createWindow({\r\n\ttitle:'test2'\r\n});\r\nvar tab2 = Ti.UI.createTab({\r\n\ttitle:'test2',\r\n\twindow:win2\r\n});\r\nvar win3 = Ti.UI.createWindow({\r\n\ttitle:'test3'\r\n});\r\nvar tab3 = Ti.UI.createTab({\r\n\ttitle:'test3',\r\n\twindow:win3\r\n});\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\ntabGroup.addTab(tab3);\r\ntabGroup.open();\r\nvar masterButton = Ti.UI.createButton({\r\n\ttitle:'List'\r\n});\r\nvar wrapper = Titanium.UI.createTableView({\r\n\tstyle:Ti.UI.iPhone.TableViewStyle.PLAIN,\r\n\trowHeight:47,\r\n\ttop:0\r\n});\r\nvar data = [];\r\nvar row = Titanium.UI.createTableViewRow({\r\n\tbackgroundColor: '#fff'\r\n});\r\n\r\n//title label\r\nvar titleLabel = Titanium.UI.createLabel({\r\n\ttext: 'Buggy Label',\r\n\tfont: {fontSize: 18},\r\n\tleft: 13,\r\n\ttop: 7,\r\n\theight: Ti.UI.SIZE,\r\n\twidth: 230,\r\n\tcolor: '#000'\r\n});\r\nrow.add(titleLabel);\r\ndata.push(row);\r\nwrapper.data = data;\t\r\nvar popover = Ti.UI.iPad.createPopover({\r\n\twidth:300,\r\n\theight:1000,\r\n\tnavBarHidden:true\r\n});\r\npopover.add(wrapper);\r\nmasterButton.addEventListener('click',function(){\r\n\tpopover.show({view:masterButton});\r\n});\r\nwrapper.addEventListener('click',function(e){\r\n\tTi.API.info('test');\r\n});\r\nwin1.setLeftNavButton(masterButton);\r\n\r\n{code}\r\n\r\nh4. Steps to reproduce\r\n1. Create a new mobile project\r\n2. Paste this code to app.js\r\n3. Run this into the emulator\r\n4. Go to the top of the screen, click list.\r\n5. Click on the label.\r\n6. Check the Ti Studio output/terminal\r\n7. Click the label again \r\n8. you will see that the event is fired twice. \r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS:ipad: TableviewRow gets a double click when used inside a popover", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "iOS Device: IPAD \r\nMobile SDK: 3.0.0.GA\r\nOS: MacOSX", "comment": { "comments": [ { "id": "245915", "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 iPad Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-05T08:34:15.000+0000", "updated": "2013-04-05T08:35:19.000+0000" }, { "id": "409647", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce with the following environment;\r\niPhone 7 and Simulator (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.2 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-07T21:27:12.000+0000", "updated": "2017-03-07T21:27:12.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }