Project: titanium
Issue TIMOB-17001: iOS: Search disappears from ListView
ListView with a search, where the itemclick event opens a window. This defect works in the ElementsOfListView tutorial app ( https://github.com/appcelerator-services/ElementsOfListView ). The customer is having the same issue in their own app. 1) Wait for the elements list to open 2) Scroll down a bit, half a screen or more. 3) Click on an element (the name, not the symbol) and wait for the new window to open. 4) Close that new window by clicking the "Done" button. 5) Scroll back up to the top. Notice there is a white space where the Search was. At this point, it should be noted that the search is still there, it just appears blank. If you click into it, it'll appear as it should. h3. Edit: Simpler test case, copy and paste into app.js {code} function MainWindow() { var win = Ti.UI.createWindow({ backgroundColor: 'white' }); var items = []; for(var i = 0; i < 100; i++) { items.push({ properties:{ title: 'Row #' + (i + 1), searchableText: 'Row #' + (i + 1) } }); } var listViewSection = Ti.UI.createListSection({ items: items }); var searchBar = Ti.UI.createSearchBar(); var listView = Ti.UI.createListView({ sections: [listViewSection], searchView: searchBar }); win.add(listView); listView.addEventListener('itemclick', function(){ SecondWindow().open({modal:true}); }); return win; } function SecondWindow() { var navWindow = Ti.UI.iOS.createNavigationWindow(); var win = Ti.UI.createWindow({ backgroundColor: 'gray' }); var closeBtn = Ti.UI.createButton({ title: 'close' }); win.rightNavButton = closeBtn; navWindow.window = win; closeBtn.addEventListener('click', function(){ navWindow.close(); }); return navWindow; } MainWindow().open(); {code}
Story points: 13