{ "id": "149236", "key": "TIMOB-19099", "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": "2015-07-23T19:57:17.000+0000", "created": "2015-06-29T14:20:13.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "listview" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-21T22:09:41.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": "The attached screenrecording shows that the first time I swipe a list item to show the custom editActions I've set, it displays the default delete action. The next time I swipe the (or another) item, I do see the custom editActions.\r\n\r\nThis seems to only happen when I set both {{ListView.canEdit}} and {{ListItem.canEdit}} to {{true}}. I have not been able to reproduce this when I did not set {{LIstView.canEdit}} and also no on device, only in iOS Simulator.}\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nvar listSection = Ti.UI.createListSection({\r\n\titems: [{\r\n\t\tproperties: {\r\n\t\t\tcanEdit: true,\r\n\t\t\ttitle: 'Swipe me',\r\n\t\t\teditActions: [{\r\n\t\t\t\ttitle: 'First'\r\n\t\t\t}, {\r\n\t\t\t\ttitle: 'Second'\r\n\t\t\t}, {\r\n\t\t\t\ttitle: 'Third'\r\n\t\t\t}]\r\n\t\t}\r\n\t}]\t\r\n});\r\nvar listView = Ti.UI.createListView({\r\n\ttop: 20,\r\n\tcanEdit: true,\r\n\tsections: [listSection]\r\n});\r\nwin.add(listView);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "55993", "filename": "nocustom.mov", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-06-29T14:18:40.000+0000", "size": 1623868, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "iOS: Default editAction visible on first swipe when setting ListView.canEdit to true", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 4.1.0 Beta (4.1.0.v20150626223333)", "closedSprints": [ { "id": 445, "state": "closed", "name": "2015 Sprint 15 SDK", "startDate": "2015-07-18T00:30:28.848Z", "endDate": "2015-08-01T00:30:00.000Z", "completeDate": "2015-08-03T01:49:18.234Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "356911", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~fokkezb] Tested this gist (https://gist.github.com/hansemannn/6075000049daed8e935b) setting both {{ListView.canEdit}} and {{ListItem.canEdit}} and could not reproduce the issue. Tested using Xcode 7 Beta 2, iOS 9 Beta 2 and latest Ti master.\r\n\r\nCan you try to run the example in Xcode 7, too? Since this ticket is for the SDK 4.3.0, i think we can test against Xcode 7.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-07-03T21:54:03.000+0000", "updated": "2015-07-03T21:54:03.000+0000" }, { "id": "356990", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~hansknoechel] I can't reproduce it with that gist and the latest SDK either, but I can using this sample app for the 4.1.0.GA release. Could you give that a try?\r\n\r\nhttps://github.com/appcelerator-developer-relations/appc-sample-ti410", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-07-06T15:06:33.000+0000", "updated": "2015-07-06T15:06:33.000+0000" }, { "id": "357660", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~fokkezb] Tested your sample app with the 4.1.0.GA in default state (downloaded and tested) as well as when {{canEdit: true}} in both ListView and ListItem in your app:\r\n\r\n{code}\r\n\"ListView\": {\r\n\tcanEdit: true\r\n}\r\n\r\n\"ListItem\": {\r\n\tcanEdit: true\r\n}\r\n{code}\r\n\r\nThe editActions are shown directly on the first swipe. Can somebody else test this issue to have another eye on this?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-07-14T17:13:19.000+0000", "updated": "2015-07-14T17:13:19.000+0000" }, { "id": "357926", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~hansknoechel] did you test on device?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-07-17T18:50:53.000+0000", "updated": "2015-07-17T18:50:53.000+0000" }, { "id": "357953", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~fokkezb] Jep, iOS Simulator and Device (both running iOS 8.4 and Ti.SDK 4.1.0.GA) without any special incidences. The custom actions are displayed on the first swipe. As this issue was part of the last sprint, I'd be happy to clear this asap. And you could reproduce the issue on the final version of your sample app, too?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-07-19T21:41:37.000+0000", "updated": "2015-07-19T21:41:37.000+0000" }, { "id": "358210", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Marking as 'Cannot Reproduce', since this issue is not present in the demo app using 4.1.0.GA release.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-07-23T19:57:17.000+0000", "updated": "2015-07-23T19:57:17.000+0000" }, { "id": "359811", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Agree, can't reproduce anymore either.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-08-13T13:51:33.000+0000", "updated": "2015-08-13T13:51:33.000+0000" }, { "id": "414542", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:09:41.000+0000", "updated": "2017-03-21T22:09:41.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }