{ "id": "110318", "key": "TIMOB-12886", "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-06-19T17:53:45.000+0000", "created": "2013-02-27T06:46:01.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14161", "description": "Release 3.0.1", "name": "Release 3.0.1", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-19T17:53:45.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": "Table view click event gets fired twice on second navigation when used with tab group.\r\n\r\n**Steps to reproduce**\r\n1: Delete other code from app.js copy paste code below code in app.js.\r\n2: run the app in iPad or iPhone Simulator.\r\n3: click on win open button, it will open another window with table view and labels added to its rows.\r\n4: now if click on row or label, table view click event fired once only.\r\n\r\nnow\r\n\r\n5: Go back, and click on win button again.\r\n6: now when you click on row, table view click event fired once but if you click on label then table view click event fired twice.\r\n\r\n7: so on 1st time event fired once but from 2nd time onwards, it fires 2 times.\r\n\r\n{code}\r\nvar tabgr = Ti.UI.createTabGroup();\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:\"green\"\r\n});\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n\tbackgroundColor:\"green\"\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttop:100,\r\n\tleft:100,\r\n\theight:150,\r\n\twidth:150,\r\n\ttitle:\"win open\"\r\n});\r\n\r\nbutton.addEventListener(\"click\",function(){\r\n\twin.attachedab.open(win1);\r\n});\r\nwin.add(button);\r\n\r\nvar tab1 = Ti.UI.createTab({\r\n\ttitle:\"tab\",\r\n\twindow:win\r\n});\r\n\r\nwin.attachedab = tab1;\r\n// Create a TableView.\r\nvar mytable = Ti.UI.createTableView();\r\n\r\n// Populate the TableView data.\r\nvar data = [\r\n\t{title:'Row 1', hasChild:true, color:'red', header:'First'},\r\n\t{title:'Row 2', hasDetail:true, color:'green'},\r\n\t{title:'Row 3', hasCheck:true, color:'blue', header:'Second'},\r\n\t{title:'Row 4', color:'orange'}\r\n];\r\n\r\nvar dataRows = [];\r\n\r\nvar row1 = Ti.UI.createTableViewRow({\r\n\theight:\"150dp\"\r\n});\r\nvar row2 = Ti.UI.createTableViewRow({\r\n\theight:\"150dp\"\r\n});\r\nvar row3 = Ti.UI.createTableViewRow({\r\n\theight:\"150dp\"\r\n});\r\nvar row4 = Ti.UI.createTableViewRow({\r\n\theight:\"150dp\"\r\n});\r\n\r\n\r\n// Create a Label.\r\nvar mylable = Ti.UI.createLabel({\r\n\ttext : 'mylable for testign',\r\n\tcolor : \"#C0C0C0\",\r\n\tfont : {fontSize:20},\r\n\theight : 150,\r\n\twidth : 150,\r\n\ttop : 2,\r\n\tleft : 2,\r\n\ttextAlign : 'center'\r\n});\r\nvar mylable1 = Ti.UI.createLabel({\r\n\ttext : 'mylable for testign',\r\n\tcolor : \"#C0C0C0\",\r\n\tfont : {fontSize:20},\r\n\theight : 150,\r\n\twidth : 150,\r\n\ttop : 2,\r\n\tleft : 2,\r\n\ttextAlign : 'center'\r\n});\r\nvar mylable2 = Ti.UI.createLabel({\r\n\ttext : 'mylable for testign',\r\n\tcolor : \"#C0C0C0\",\r\n\tfont : {fontSize:20},\r\n\theight : 150,\r\n\twidth : 150,\r\n\ttop : 2,\r\n\tleft : 2,\r\n\ttextAlign : 'center'\r\n});\r\nvar mylable3 = Ti.UI.createLabel({\r\n\ttext : 'mylable for testign',\r\n\tcolor : \"#C0C0C0\",\r\n\tfont : {fontSize:20},\r\n\theight : 150,\r\n\twidth : 150,\r\n\ttop : 2,\r\n\tleft : 2,\r\n\ttextAlign : 'center'\r\n});\r\n\r\n// Add to the parent view.\r\nrow1.add(mylable);\r\nrow2.add(mylable1);\r\nrow3.add(mylable2);\r\nrow4.add(mylable3);\r\n\r\ndataRows.push(row1,row2,row3,row4);\r\nmytable.setData(dataRows);\r\n\r\n// Listen for click events.\r\nmytable.addEventListener('click', function(e) {\r\n\talert('title: \\'' + e.row.title + '\\', section: \\'' + e.section.headerTitle + '\\', index: ' + e.index);\r\n});\r\n\r\n// Add to the parent view.\r\nwin1.add(mytable);\r\ntabgr.addTab(tab1);\r\ntabgr.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "table view click event gets fired twice on second navigation when used with tab group.", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "iOS , Titanium SDK", "comment": { "comments": [ { "id": "422260", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170609091155\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.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-19T17:53:45.000+0000", "updated": "2017-06-19T17:53:45.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }