Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2039] Bluring the SearchBar should not disable Cancel button

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2013-04-02T23:42:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelssearchbar, ui
ReporterNeville Dastur
AssigneeMauro Parra-Miranda
Created2012-12-05T16:42:11.000+0000
Updated2016-03-08T07:40:59.000+0000

Description

   var win = Ti.UI.createWindow({});
   var SearchBar = Ti.UI.createSearchBar({
		top: 0,
		showCancel: true,
		height: '42dp',
	});
   win.add(SearchBar);

   win.open();
   SearchBar.blur();
In this instance the keyboard disappears, but the Cancel button becomes inactive. As an example of why this is incorrect behaviour see the default Mail app on an iPad. Perform a search in mail. Lower the keyboard. Cancel remains active and the user can dismiss search.

Comments

  1. Daniel Sefton 2012-12-05

    Thanks for the report, can you clarify the iOS version and Titanium SDK version?
  2. Neville Dastur 2012-12-05

    Sorry, updated main ticket. But note that Q&A shows posts about this going back to previous iOS SDKs and Ti SDKs
  3. Pedro Enrique 2013-04-02

    Looking at the source code, it looks like we have no control over this since we're calling the native API directly: https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiUISearchBar.m#L89
  4. Mauro Parra-Miranda 2013-11-24

    Invalid issue.

JSON Source