Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2117] Move itens to a blank Header in TableView on Edit crash App.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2012-02-29T15:31:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterAdriano Paladini
AssigneeNeeraj Gupta
Created2011-04-15T03:10:54.000+0000
Updated2017-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.

Comments

  1. Stephen Tramer 2011-04-15

    You'll have to shuffle around rows a bit more than in the bug description, but this is valid.

  2. Lee Morris 2017-03-22

    Closing ticket as duplicate and links to the related ticket have been provided above.

JSON Source