[AC-2039] Bluring the SearchBar should not disable Cancel button
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2013-04-02T23:42:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | searchbar, ui |
Reporter | Neville Dastur |
Assignee | Mauro Parra-Miranda |
Created | 2012-12-05T16:42:11.000+0000 |
Updated | 2016-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.
Thanks for the report, can you clarify the iOS version and Titanium SDK version?
Sorry, updated main ticket. But note that Q&A shows posts about this going back to previous iOS SDKs and Ti SDKs
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
Invalid issue.