[TIMOB-2117] Move itens to a blank Header in TableView on Edit crash App.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-02-29T15:31:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Adriano Paladini |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:10:54.000+0000 |
Updated | 2017-03-22T22:19:27.000+0000 |
Description
When you move an item to an empty category in Tableview crashes the application.
See sample code above:
var win = Ti.UI.createWindow();
var Data = [
{header:'A',title:"test 1"},
{title:"test 2"},
{header:'B',title:"test 3"},
{header:'C',title:"test 4"},
{title:"test 5"}
];
var Table = Ti.UI.createTableView({
style: Ti.UI.iPhone.TableViewStyle.PLAIN,
editable:true,
moveable:true,
data:Data
});
Table.editing = true;
win.add(Table);
win.open();
Now run this code, Drag the "test 3" to outsite of "B" and then drag ANY item to inside "B". The App will CRASH.
You'll have to shuffle around rows a bit more than in the bug description, but this is valid.
Closing ticket as duplicate and links to the related ticket have been provided above.