Problem description#
The label elements in the rows of a tableview disappear after using searchbar twice.
Steps to reproduce
1. Start app
2. Tap the searchbar and enter "row"
3. Tap on the first row of the search result
4. Tab on the "OK" button of the alert box
5. tab on the searchbar again
All label elements disappeared
Test case
(function() {
Ti.UI.backgroundColor = 'white';
var win, view, table, data, row, lbl, search, i, j;
win = Ti.UI.createWindow({backgroundColor:'#ffffff'});
view = Titanium.UI.createView({backgroundColor:"#FFFEEE",top:0});
search = Titanium.UI.createSearchBar();
data = [];
for(i=0,j=10; i<j; i++){
row = Ti.UI.createTableViewRow({color:'transparent',title:"Test Row "+i});
lbl = Ti.UI.createLabel({text:"Test Row"+i});
row.add(lbl);
data.push(row);
}
table = Ti.UI.createTableView({search:search,data:data});
table.addEventListener('click', function(evt){alert('clicked');});
view.add(table);
win.add(view);
var navWin1 = Titanium.UI.iOS.createNavigationWindow({window: win});
navWin1.open();
})();