[TIMOB-19099] iOS: Default editAction visible on first swipe when setting ListView.canEdit to true
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2015-07-23T19:57:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | listview |
Reporter | Fokke Zandbergen |
Assignee | Hans Knöchel |
Created | 2015-06-29T14:20:13.000+0000 |
Updated | 2017-03-21T22:09:41.000+0000 |
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.
This 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.}
var win = Ti.UI.createWindow();
var listSection = Ti.UI.createListSection({
items: [{
properties: {
canEdit: true,
title: 'Swipe me',
editActions: [{
title: 'First'
}, {
title: 'Second'
}, {
title: 'Third'
}]
}
}]
});
var listView = Ti.UI.createListView({
top: 20,
canEdit: true,
sections: [listSection]
});
win.add(listView);
win.open();
Attachments
File | Date | Size |
---|---|---|
nocustom.mov | 2015-06-29T14:18:40.000+0000 | 1623868 |
[~fokkezb] Tested this gist (https://gist.github.com/hansemannn/6075000049daed8e935b) setting both
ListView.canEdit
andListItem.canEdit
and could not reproduce the issue. Tested using Xcode 7 Beta 2, iOS 9 Beta 2 and latest Ti master. Can 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.[~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? https://github.com/appcelerator-developer-relations/appc-sample-ti410
[~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:The editActions are shown directly on the first swipe. Can somebody else test this issue to have another eye on this?
[~hansknoechel] did you test on device?
[~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?
Marking as 'Cannot Reproduce', since this issue is not present in the demo app using 4.1.0.GA release.
Agree, can't reproduce anymore either.
Closing ticket as the issue cannot be reproduced and due to the above comments.