Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4274] iOS: searchHidden value does not stay when window containing scroll view is blurred/focused

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-10-03T18:06:18.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.5.0, Release 4.0.0
ComponentsiOS
Labelsn/a
ReporterMatthew Apperson
AssigneeMuhammad Dadu
Created2011-06-01T08:46:13.000+0000
Updated2014-11-21T19:21:04.000+0000

Description

The use of searchHidden:true is losing its value in that once a window containing a table with this property is blurred, on return the search is displayed. Code example below:
Titanium.UI.setBackgroundColor('#fff');

var tabGroup = Titanium.UI.createTabGroup();

var win1 = Titanium.UI.createWindow({
	title:'Tab 1'
});
var tab1 = Titanium.UI.createTab({
	title:'Tab 1',
	window:win1
});

var data = [{
	title:'row 1'
}];

var s1 = Titanium.UI.createSearchBar();
var tb = Ti.UI.createTableView({
	data:data,
	search:s1,
	searchHidden:true
});
win1.add(tb);

var win2 = Titanium.UI.createWindow({
	title:'Tab 2'
});
var tab2 = Titanium.UI.createTab({
	title:'Tab 2',
	window:win2
});

var label2 = Titanium.UI.createLabel({
	text:'I am Window 2'
});

win2.add(label2);

tabGroup.addTab(tab1);
tabGroup.addTab(tab2);

tabGroup.open();

Attachments

FileDateSize
app.js2011-06-01T09:03:31.000+0000656

Comments

  1. Muhammad Dadu 2014-09-29

    PR: https://github.com/appcelerator/titanium_mobile/pull/6180 Refreshes the search controller on focus.
  2. Lokesh Choudhary 2014-10-03

    Verified the fix. The searchBar property searchHidden now retains its value after blur & then focus from another window. Closing. Environment: Appc Studio : 3.4.0.201409261245 Ti SDK : 3.5.0.v20141003114918 Mac OSX : 10.9.4 Alloy : 1.5.1 CLI - 3.4.0 Code Processor: 1.1.1 Iphone 6 - IOS 8.0.2

JSON Source