Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-948] iOS: SearchBar issue in PopOver, with TableView

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2017-06-07T22:50:55.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterFred Spencer
AssigneeIngo Muschenetz
Created2011-04-15T02:39:56.000+0000
Updated2017-06-07T22:50:55.000+0000

Description

Scenario:

PopOver populated with a TableView - TableView given a SearchBar When search is given focus, the TableView will gray. Tapping the TableView will blur the SearchBar and remove the gray from the TableView and the cancel button from the SearchBar. Tapping out of a PopOver will trigger the hide method (correct?) and event on the PopOver. While using the blur method on the SearchBar does work if the PopOver is hidden, the TableView is still grayed out (and the cancel button still shows) when the user taps to display the PopOver. Same behavior in 1.2 and 1.3

Comments

  1. Stephen Tramer 2011-04-15

    Might be a duplicate of TIMOB-1091.
  2. szul 2011-04-15

    I wanted to add my comments here so that I could close my HelpDesk ticket. I was pointed to this bug as the reason for my issues with inserting a search bar as a table view row inside of a popover menu for an iPad application. The search bar successfully gains focus when the app is in horizontal orientation (where the popover becomes the left side of a split view), but refuses to gain focus when in vertical orientation (where it is a popover).

    Here is the HelpDesk ticket: http://developer.appcelerator.com/helpdesk/view/59541#c270271
  3. Pedro Enrique 2011-06-06

    Sample Code:
       // ======== sidebar ========
       var listWin = Ti.UI.createWindow();
       var tableData = [];
       for (var i = 0;i<200;i++){
       	tableData[i] = {title:'Row #'+(i+1),rowId:i};
       }
       var table = Ti.UI.createTableView({
       	data:tableData,
       	search:Ti.UI.createSearchBar()
       });
       
       listWin.add(table);
       
       
       // ======== main window ========
       
       var mainWin = Ti.UI.createWindow();
       var label = Ti.UI.createLabel({
       	text:'This is a label',
       	backgroundColor:'white',
       	width:200,
       	height:50
       });
       mainWin.add(label);
       
       
       // split view stuff
       var masterNav = Ti.UI.iPhone.createNavigationGroup({});
       var detailNav = Ti.UI.iPhone.createNavigationGroup({});
       
       masterNav.window=listWin;
       detailNav.window=mainWin;
       
       var splitView = Titanium.UI.iPad.createSplitWindow({
       	masterView:masterNav,
       	detailView:detailNav
       });
       
       splitView.addEventListener('visible', function(e) {
           if (e.view == 'detail') {
               e.button.title = "List";
       
               detailNav.window.leftNavButton = e.button;          
           }else if (e.view  == 'master') {
       		detailNav.window.leftNavButton = null;
           }
       });
       
       splitView.open();
       
       
    http://pastie.org/2028359
  4. Junaid Younus 2012-05-14

    I can reproduce this with 2.0.1GA2 on the iPad simulator.
  5. Junaid Younus 2012-08-13

    Tested on the iPad simulator with TiSDK 2.2.0v20120810194112, issue still reproducible.
  6. Mark Henderson 2014-02-26

    Can I champion this issue. It still exists in 3.2.1 I also see that the searchBar doesn't hide the original rows when you begin to filter if in a popover. So if I filter down to 2 rows, the original rows 3,4,5 etc.. are still visible underneath.
  7. Ingo Muschenetz 2014-02-26

    Is this related to TIMOB-15526?
  8. Lee Morris 2017-06-07

    Closing ticket as duplicate.

JSON Source