{ "id": "164484", "key": "TIMOB-24135", "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": "18928", "name": "Release 6.0.2", "archived": false, "released": true, "releaseDate": "2017-02-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-02-08T04:56:00.000+0000", "created": "2016-11-10T18:03:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-6.0.0", "regression" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [ { "id": "53458", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158379", "key": "TIMOB-22429", "fields": { "summary": "Ti.UI.TableView Test Suite: Titanium.UI.TableView Acceptance TIMOB-7030", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } }, { "id": "54220", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "165829", "key": "TIMOB-24382", "fields": { "summary": "Windows: Adding same component multiple times should not cause error", "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": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-02-13T18:53:39.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\n*This is a regression from 5.5.1.GA*\r\n\r\nWhen a tableview is filtered based of a search performed via a searchbar eventListeners are not maintained \r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\n\r\nvar data = [{\r\n title: 'First Row',\r\n hasDetail: true\r\n}, {\r\n title: 'Second Row',\r\n hasDetail: true\r\n}, {\r\n title: 'Third Row',\r\n hasDetail: true\r\n}, {\r\n title: 'Forth Row',\r\n hasDetail: true\r\n}, {\r\n title: 'Fifth Row',\r\n hasDetail: true\r\n}];\r\n\r\nvar search = Ti.UI.createSearchBar({\r\n top:0,\r\n returnKeyType: Ti.UI.RETURNKEY_DONE\r\n});\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n top:50,\r\n data: data,\r\n search: search\r\n});\r\n\r\ntableView.addEventListener('click', function(e) {\r\n alert('Click Event. index: ' + e.index + ', Title: ' + e.row.title);\r\n});\r\n_window.add(tableView);\r\n\r\n_window.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the above code to an existing app.js and build for Windows Platform\r\n# Search in the searchbar for something like 'third' and hit the return key\r\n# Tap the row\r\n\r\nh5.Actual result\r\n\r\nAlert is not shown\r\n\r\nh5.Expected result\r\n\r\nAlert should be shown", "attachment": [], "flagged": false, "summary": "Windows: eventListener not maintained when a list is filtered based off a search", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "OS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-69\r\nAppc NPM: 4.2.8-9\r\nTi SDK: 6.0.0.v20161109075403", "closedSprints": [ { "id": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "404678", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/925", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-17T05:41:13.000+0000", "updated": "2017-01-17T05:41:13.000+0000" }, { "id": "405125", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Cherry-pick for 6_0_X: https://github.com/appcelerator/titanium_mobile_windows/pull/932", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-24T01:47:29.000+0000", "updated": "2017-01-24T01:47:29.000+0000" }, { "id": "405219", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with the following environment: \r\nNPM Version: 2.15.9 \r\nNode Version: 4.6.0 \r\nWindows OS: 10 Pro, Version 1607 Build 14393.693 \r\nAppc CLI: 6.1.0 \r\nAppc CLI NPM: 4.2.8 \r\nTitanium SDK version: 6.1.0.v20170124122351 and 6.0.2.v20170123140026\r\nWindows Phone Devices 8.1 and 10\r\nWindows Emulators 8.1 and 10\r\n\r\nUsing the demo code in the description, the latest SDK's 6.1.0 and 6.0.2 continue to show the originally reported bug. After installing the app, I searched for \"third\", and hit return. The row with \"third\" was then the only row visible. When clicking on the row, the row turned and stayed gray as long as the mouse button was held down. When releasing the mouse button, no alert popup was seen (a popup was expected to be seen). I closed and relaunched the app, and clicked on a row without searching first, and an alert popup was seen.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-25T00:01:36.000+0000", "updated": "2017-01-25T00:01:36.000+0000" }, { "id": "405223", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I guess that's because Jenkins has failed to build the nightly SDK. Let me check and let you know when it's ready.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-25T00:20:47.000+0000", "updated": "2017-01-25T00:20:47.000+0000" }, { "id": "405313", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tested this today with newer builds (all other environment settings in my previous comment still apply):\r\nTitanium SDK version: 6.1.0.v20170125103400\r\nTitanium SDK version: 6.0.2.v20170124145857\r\nWindows Phone Devices 8.1 and 10 \r\nWindows Emulators 8.1 and 10\r\n[~kota] The newest SDK 6.1.0 has your fix, as now I can see the alert after filtering by search. The SDK 6.0.2 which I installed today doesn't have the fix yet, so I don't know if you're still getting build failures. Can you let me know when it's ready? ", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-25T22:08:27.000+0000", "updated": "2017-01-25T22:08:27.000+0000" }, { "id": "405315", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~amukherjee] Yeah I was asking [~cwilliams] about it yesterday. I will let you know then. (y)", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-25T22:30:23.000+0000", "updated": "2017-01-25T22:30:23.000+0000" }, { "id": "405428", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kota] Thanks. Just to give an update, the build from this morning still doesn't have the fix: 6.0.2.v20170126032914. I tried it on device and emulator, for both Win Phone 10 and 8.1.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-26T21:52:58.000+0000", "updated": "2017-01-26T21:52:58.000+0000" }, { "id": "406551", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kota] There is an issue with the latest build from master. Same configuration as above, but with SDK 6.1.0.v20170202120400, when the app launched, I saw this error on the device (Windows 10):\r\n_Application error\r\nadd: No installed components were detected.\r\nElement is already the child of another element_.\r\n\r\nI tried with a default app and did not see this error, so it is specific to this ticket.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-07T23:20:55.000+0000", "updated": "2017-02-07T23:20:55.000+0000" }, { "id": "406558", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~amukherjee] I noticed that the sample code in this ticket is not quite right. You don't need to add {{SearchBar}} to the {{Window}} now because it's already added through {{TableView.search}} property. I have updated the description. It sounds kind of weird but I also noticed that adding components multiple times on iOS does not cause error in this case (but on Windows it throws exception), this may be an parity issue and should go to different ticket. I will add that one later on.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-08T00:28:17.000+0000", "updated": "2017-02-08T00:28:17.000+0000" }, { "id": "406561", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kota] Your edits to the test case worked. I didn't see the error, and the fix that is related to this ticket also works. You can move it back to Resolved, since it was a revision to the demo code. I'll close the ticket once the 6.0.2 build comes through.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-08T01:39:18.000+0000", "updated": "2017-02-08T01:39:18.000+0000" }, { "id": "406877", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with the following environment: \r\nNPM Version: 2.15.9 \r\nNode Version: 4.6.0 \r\nWindows OS: 10 Pro, Version 1607 Build 14393.693 \r\nAppc CLI: 6.1.0 \r\nAppc CLI NPM: 4.2.8 \r\nTitanium SDK version: 6.0.2.v20170213083448\r\nWindows Device 8.1 (Lumia 640)\r\nWindows Device 10 (Lumia 650)\r\n\r\nI tested this with the latest SDK 6.0.2 and validated the fix. Specifically, I installed the demo app, and filtered for various rows. After filtering, I clicked on the row and an alert popped up.\r\n", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-13T18:53:23.000+0000", "updated": "2017-02-13T18:53:23.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }