Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14943] iOS: SearchBar mask on iPad does not disappear when the keyboard is hidden

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2013-08-27T18:38:32.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterDavide Cassenti
AssigneeIngo Muschenetz
Created2013-08-23T13:54:34.000+0000
Updated2017-03-20T20:35:41.000+0000

Description

Problem description

When selecting a search bar on iPad, a mask appears to cover the scren (half transparent black layer). By clicking the button on the virtual keyboard to hide it, the keyboard goes away, but the mask is not removed.

Steps to reproduce

1) Using the code below, click on the search bar 2) click on the button to hide the keyboard 3) the mask does not appear (see screenshot)
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({
	backgroundColor : '#fff'
});
var allNoteTypes = [{
	title : 'Plan 1'
}, {
	title : 'Plan 2'
}, {
	title : 'Plan 3'
}];

var searchBar = Ti.UI.createSearchBar();

var table = Ti.UI.createTableView({
	top : 22,
	width : "100%",
	data : allNoteTypes,
	search : searchBar
});

win.add(table);

win.open();

Attachments

FileDateSize
iOS Simulator Screen shot 23 Aug 2013 14.53.10.png2013-08-23T13:54:34.000+000025409

Comments

  1. Sabil Rahim 2013-08-27

    [~dcassenti] This is not a bug, this is the native behavior. The search view (i.e the transparent view) will remain on screen unless the cancel button is pressed or if the searchview itslef is tapped. This behavior can be noticed in native apps also. For example: [native app](http://cdn4.raywenderlich.com/downloads/CandySearch.zip) Marking ticket as invalid.
  2. Lee Morris 2017-03-20

    Closing ticket as invalid.

JSON Source