[TIMOB-25373] iOS: Search result view of List did not close when widow containing list view get closed.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-10-11T21:12:07.000+0000 |
Affected Version/s | Release 6.2.0 |
Fix Version/s | Release 6.3.0 |
Components | n/a |
Labels | community, ios |
Reporter | Vijay Singh |
Assignee | Vijay Singh |
Created | 2017-10-06T08:13:30.000+0000 |
Updated | 2017-10-11T23:04:21.000+0000 |
Description
Open window containing list view with searchbar. Start searching . click any search item and close window in callback of item click. Search view remains.
Test Case-
var win1 = Titanium.UI.createWindow({
backgroundColor: 'red',
title: 'Red Window',
});
var win2 = Titanium.UI.createWindow({
});
var button = Titanium.UI.createButton({
title: 'Open List Window',
});
var rows = [];
for (var i = 0; i < 5; i++) {
rows.push({ properties: { title: 'Row '+ i , backgroundColor: 'red', searchableText:'Row '+i}});
}
var sb = Ti.UI.createSearchBar();
var ls = Ti.UI.createListSection({
items: rows
});
var lv = Ti.UI.createListView({
top : 0,
sections: [ls],
searchView: sb,
});
sb.addEventListener('return', function(e){
sb.blur();
});
lv.addEventListener('itemclick', function(e) {
Ti.API.info('click at index: ' + e.itemIndex);
win2.close();
});
win2.add(lv);
button.addEventListener('click', function(){
win2.open();
});
win1.add(button);
win1.open();
PR (master) - https://github.com/appcelerator/titanium_mobile/pull/9508 PR (6_3_X) - https://github.com/appcelerator/titanium_mobile/pull/9509 Test Case -
FR Passed. Able to perform a search and close the containing view without the search results remaining. Tested using the provided case as well as the searchbar suite
Verified in SDK builds 6.3.0.v20171011142527 & 7.0.0.v20171011150724