Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9337] iOS: Clicking on table view search result row closes the search.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-06-01T12:03:21.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sn/a
ComponentsiOS
LabelsEMC, ios, support
ReporterBetty Tran
AssigneeNeeraj Gupta
Created2012-06-01T04:30:43.000+0000
Updated2017-03-14T21:59:14.000+0000

Description

*Description* In a table view search bar, after searching for a table row, clicking on the result will immediately close the search. *Sample Code*
var win = Ti.UI.createWindow({
    backgroundColor: 'white',
    title: 'Test tab'
});

var search = Titanium.UI.createSearchBar({
    barColor:'#000', 
    showCancel:true,
    height:43,
    top:0
});

var tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ];


var table = Ti.UI.createTableView({
  data: tableData,
  search: search
});

win.add(table);

win.open();

*Steps to Reproduce* 1. Search "apples". 2. Click on search result row. 3. Search will close.

Comments

  1. Vishal Duggal 2012-06-01

    Set hideSearchOnSelection to false on tableView
       var table = Ti.UI.createTableView({
         data: tableData,
         search: search,
         hideSearchOnSelection:false
       });
       
  2. Lee Morris 2017-03-14

    Closed as invalid.

JSON Source