Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19623] iOS: label elements in the rows of a tableview disappear after using searchbar twice

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2015-11-20T04:46:43.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
LabelsiOS, searchbar, tableviewrow
ReporterMarkus Eschenbach
AssigneeSrikanth Sombhatla
Created2015-04-22T15:20:58.000+0000
Updated2015-11-20T04:46:43.000+0000

Description

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();
})();	

Attachments

FileDateSize
iOS Simulator Screen Shot Apr 23, 2015, 10.48.48 AM.png2015-04-23T04:50:46.000+000059467
iOS Simulator Screen Shot Apr 23, 2015, 10.49.04 AM.png2015-04-23T04:50:46.000+000030186
screen1.png2015-04-22T15:21:24.000+000057515
screen2.png2015-04-22T15:21:24.000+000028834

Comments

  1. Srikanth Sombhatla 2015-11-20

JSON Source