Description
Calling updateRow with a row that already exists in the tableview freezes the app
var _window = Ti.UI.createWindow();
var data = [{
title: 'Row 1'
}, {
title: 'Row 2'
}];
var table = Ti.UI.createTableView({
data: data
});
_window.add(table);
table.addEventListener('click', TableClick);
function TableClick(evt) {
alert('table row clicked');
}
var btn2 = Ti.UI.createButton({
title: 'update row 1',
width: 120,
height: 50,
left: 10,
bottom: 0
});
btn2.addEventListener('click', DoBtn2Click);
_window.add(btn2);
function DoBtn2Click() {
table.updateRow(0, table.data[0].rows[0]);
}
_window.open();
Steps to reproduce
Add the above to an existing app.js
Build for a windows target
Actual
App freezes
Expected
Unsure, adding a UI element twice usually causes an error on Windows, could we pull properties from the existing one and create a new one based from that?
https://github.com/appcelerator/titanium_mobile_windows/pull/1035
https://github.com/appcelerator/titanium_mobile_windows/pull/1065
Merged to 6_2_X https://github.com/appcelerator/titanium_mobile_windows/pull/1079
Verified in 6.2.0.v20170821001430, closing ticket