Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19099] iOS: Default editAction visible on first swipe when setting ListView.canEdit to true

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2015-07-23T19:57:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelslistview
ReporterFokke Zandbergen
AssigneeHans Knöchel
Created2015-06-29T14:20:13.000+0000
Updated2017-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

FileDateSize
nocustom.mov2015-06-29T14:18:40.000+00001623868

Comments

  1. Hans Knöchel 2015-07-03

    [~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. 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.
  2. Fokke Zandbergen 2015-07-06

    [~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
  3. Hans Knöchel 2015-07-14

    [~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:
       "ListView": {
       	canEdit: true
       }
       
       "ListItem": {
       	canEdit: true
       }
       
    The editActions are shown directly on the first swipe. Can somebody else test this issue to have another eye on this?
  4. Fokke Zandbergen 2015-07-17

    [~hansknoechel] did you test on device?
  5. Hans Knöchel 2015-07-19

    [~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?
  6. Hans Knöchel 2015-07-23

    Marking as 'Cannot Reproduce', since this issue is not present in the demo app using 4.1.0.GA release.
  7. Fokke Zandbergen 2015-08-13

    Agree, can't reproduce anymore either.
  8. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced and due to the above comments.

JSON Source